azalea_protocol/packets/game/
mod.rs

1// NOTE: This file is generated automatically by codegen/packet.py.
2// Don't edit it directly!
3
4use azalea_protocol_macros::declare_state_packets;
5
6declare_state_packets!(GamePacket,
7    Clientbound => [
8        bundle_delimiter, // 0x00
9        add_entity, // 0x01
10        add_experience_orb, // 0x02
11        animate, // 0x03
12        award_stats, // 0x04
13        block_changed_ack, // 0x05
14        block_destruction, // 0x06
15        block_entity_data, // 0x07
16        block_event, // 0x08
17        block_update, // 0x09
18        boss_event, // 0x0A
19        change_difficulty, // 0x0B
20        chunk_batch_finished, // 0x0C
21        chunk_batch_start, // 0x0D
22        chunks_biomes, // 0x0E
23        clear_titles, // 0x0F
24        command_suggestions, // 0x10
25        commands, // 0x11
26        container_close, // 0x12
27        container_set_content, // 0x13
28        container_set_data, // 0x14
29        container_set_slot, // 0x15
30        cookie_request, // 0x16
31        cooldown, // 0x17
32        custom_chat_completions, // 0x18
33        custom_payload, // 0x19
34        damage_event, // 0x1A
35        debug_sample, // 0x1B
36        delete_chat, // 0x1C
37        disconnect, // 0x1D
38        disguised_chat, // 0x1E
39        entity_event, // 0x1F
40        entity_position_sync, // 0x20
41        explode, // 0x21
42        forget_level_chunk, // 0x22
43        game_event, // 0x23
44        horse_screen_open, // 0x24
45        hurt_animation, // 0x25
46        initialize_border, // 0x26
47        keep_alive, // 0x27
48        level_chunk_with_light, // 0x28
49        level_event, // 0x29
50        level_particles, // 0x2A
51        light_update, // 0x2B
52        login, // 0x2C
53        map_item_data, // 0x2D
54        merchant_offers, // 0x2E
55        move_entity_pos, // 0x2F
56        move_entity_pos_rot, // 0x30
57        move_minecart_along_track, // 0x31
58        move_entity_rot, // 0x32
59        move_vehicle, // 0x33
60        open_book, // 0x34
61        open_screen, // 0x35
62        open_sign_editor, // 0x36
63        ping, // 0x37
64        pong_response, // 0x38
65        place_ghost_recipe, // 0x39
66        player_abilities, // 0x3A
67        player_chat, // 0x3B
68        player_combat_end, // 0x3C
69        player_combat_enter, // 0x3D
70        player_combat_kill, // 0x3E
71        player_info_remove, // 0x3F
72        player_info_update, // 0x40
73        player_look_at, // 0x41
74        player_position, // 0x42
75        player_rotation, // 0x43
76        recipe_book_add, // 0x44
77        recipe_book_remove, // 0x45
78        recipe_book_settings, // 0x46
79        remove_entities, // 0x47
80        remove_mob_effect, // 0x48
81        reset_score, // 0x49
82        resource_pack_pop, // 0x4A
83        resource_pack_push, // 0x4B
84        respawn, // 0x4C
85        rotate_head, // 0x4D
86        section_blocks_update, // 0x4E
87        select_advancements_tab, // 0x4F
88        server_data, // 0x50
89        set_action_bar_text, // 0x51
90        set_border_center, // 0x52
91        set_border_lerp_size, // 0x53
92        set_border_size, // 0x54
93        set_border_warning_delay, // 0x55
94        set_border_warning_distance, // 0x56
95        set_camera, // 0x57
96        set_chunk_cache_center, // 0x58
97        set_chunk_cache_radius, // 0x59
98        set_cursor_item, // 0x5A
99        set_default_spawn_position, // 0x5B
100        set_display_objective, // 0x5C
101        set_entity_data, // 0x5D
102        set_entity_link, // 0x5E
103        set_entity_motion, // 0x5F
104        set_equipment, // 0x60
105        set_experience, // 0x61
106        set_health, // 0x62
107        set_held_slot, // 0x63
108        set_objective, // 0x64
109        set_passengers, // 0x65
110        set_player_inventory, // 0x66
111        set_player_team, // 0x67
112        set_score, // 0x68
113        set_simulation_distance, // 0x69
114        set_subtitle_text, // 0x6A
115        set_time, // 0x6B
116        set_title_text, // 0x6C
117        set_titles_animation, // 0x6D
118        sound_entity, // 0x6E
119        sound, // 0x6F
120        start_configuration, // 0x70
121        stop_sound, // 0x71
122        store_cookie, // 0x72
123        system_chat, // 0x73
124        tab_list, // 0x74
125        tag_query, // 0x75
126        take_item_entity, // 0x76
127        teleport_entity, // 0x77
128        ticking_state, // 0x78
129        ticking_step, // 0x79
130        transfer, // 0x7A
131        update_advancements, // 0x7B
132        update_attributes, // 0x7C
133        update_mob_effect, // 0x7D
134        update_recipes, // 0x7E
135        update_tags, // 0x7F
136        projectile_power, // 0x80
137        custom_report_details, // 0x81
138        server_links, // 0x82
139    ],
140    Serverbound => [
141        accept_teleportation, // 0x00
142        block_entity_tag_query, // 0x01
143        bundle_item_selected, // 0x02
144        change_difficulty, // 0x03
145        chat_ack, // 0x04
146        chat_command, // 0x05
147        chat_command_signed, // 0x06
148        chat, // 0x07
149        chat_session_update, // 0x08
150        chunk_batch_received, // 0x09
151        client_command, // 0x0A
152        client_tick_end, // 0x0B
153        client_information, // 0x0C
154        command_suggestion, // 0x0D
155        configuration_acknowledged, // 0x0E
156        container_button_click, // 0x0F
157        container_click, // 0x10
158        container_close, // 0x11
159        container_slot_state_changed, // 0x12
160        cookie_response, // 0x13
161        custom_payload, // 0x14
162        debug_sample_subscription, // 0x15
163        edit_book, // 0x16
164        entity_tag_query, // 0x17
165        interact, // 0x18
166        jigsaw_generate, // 0x19
167        keep_alive, // 0x1A
168        lock_difficulty, // 0x1B
169        move_player_pos, // 0x1C
170        move_player_pos_rot, // 0x1D
171        move_player_rot, // 0x1E
172        move_player_status_only, // 0x1F
173        move_vehicle, // 0x20
174        paddle_boat, // 0x21
175        pick_item_from_block, // 0x22
176        pick_item_from_entity, // 0x23
177        ping_request, // 0x24
178        place_recipe, // 0x25
179        player_abilities, // 0x26
180        player_action, // 0x27
181        player_command, // 0x28
182        player_input, // 0x29
183        player_loaded, // 0x2A
184        pong, // 0x2B
185        recipe_book_change_settings, // 0x2C
186        recipe_book_seen_recipe, // 0x2D
187        rename_item, // 0x2E
188        resource_pack, // 0x2F
189        seen_advancements, // 0x30
190        select_trade, // 0x31
191        set_beacon, // 0x32
192        set_carried_item, // 0x33
193        set_command_block, // 0x34
194        set_command_minecart, // 0x35
195        set_creative_mode_slot, // 0x36
196        set_jigsaw_block, // 0x37
197        set_structure_block, // 0x38
198        sign_update, // 0x39
199        swing, // 0x3A
200        teleport_to_entity, // 0x3B
201        use_item_on, // 0x3C
202        use_item, // 0x3D
203    ]
204);