Skip to main content

ghast_protocol/generated/v26_3/play/
clientbound.rs

1// @generated by ghast-codegen-protocol from PrismarineJS minecraft-data 3.119.0
2// (data/pc/26.1/protocol.json + codegen/protocol/delta/776.json + codegen/protocol/delta/777.json, Minecraft 26.3). Do not edit; run `cargo run -p ghast-codegen-protocol`.
3// minecraft-data is MIT licensed, Copyright (c) 2015 PrismarineJS; see the NOTICE file
4// in crates/ghast-protocol/src/generated/.
5
6//! Clientbound packets of the play state.
7
8#![allow(
9    unused_imports,
10    unused_variables,
11    unused_mut,
12    unused_parens,
13    unused_braces,
14    clippy::all,
15    clippy::pedantic,
16    non_camel_case_types,
17    non_snake_case
18)]
19use crate::codec::{Decode, DecodeResult, Encode, EncodeResult, McWrite, Reader, decode_exact};
20use crate::error::{DecodeError, EncodeError};
21use crate::nbt::{AnonNbt, RawNbt};
22use crate::packet::{Direction, PacketSet, RawPacket, State};
23#[cfg(feature = "testgen")]
24use crate::testgen::{Gen, Generate};
25use crate::types::{BlockPos, ByteString, Holder, HolderSet, LpVec3, PositionLayout, Uuid};
26use bytes::{BufMut, Bytes, BytesMut};
27
28/// Packet ids.
29pub mod id {
30    /// `bundle_delimiter`
31    pub const BUNDLE_DELIMITER: i32 = 0x00;
32    /// `spawn_entity`
33    pub const SPAWN_ENTITY: i32 = 0x01;
34    /// `animation`
35    pub const ANIMATION: i32 = 0x02;
36    /// `statistics`
37    pub const STATISTICS: i32 = 0x03;
38    /// `acknowledge_player_digging`
39    pub const ACKNOWLEDGE_PLAYER_DIGGING: i32 = 0x04;
40    /// `block_break_animation`
41    pub const BLOCK_BREAK_ANIMATION: i32 = 0x05;
42    /// `tile_entity_data`
43    pub const TILE_ENTITY_DATA: i32 = 0x06;
44    /// `block_action`
45    pub const BLOCK_ACTION: i32 = 0x07;
46    /// `block_change`
47    pub const BLOCK_CHANGE: i32 = 0x08;
48    /// `boss_bar`
49    pub const BOSS_BAR: i32 = 0x09;
50    /// `difficulty`
51    pub const DIFFICULTY: i32 = 0x0a;
52    /// `chunk_batch_finished`
53    pub const CHUNK_BATCH_FINISHED: i32 = 0x0b;
54    /// `chunk_batch_start`
55    pub const CHUNK_BATCH_START: i32 = 0x0c;
56    /// `chunk_biomes`
57    pub const CHUNK_BIOMES: i32 = 0x0d;
58    /// `clear_titles`
59    pub const CLEAR_TITLES: i32 = 0x0e;
60    /// `tab_complete`
61    pub const TAB_COMPLETE: i32 = 0x0f;
62    /// `declare_commands`
63    pub const DECLARE_COMMANDS: i32 = 0x10;
64    /// `close_window`
65    pub const CLOSE_WINDOW: i32 = 0x11;
66    /// `window_items`
67    pub const WINDOW_ITEMS: i32 = 0x12;
68    /// `craft_progress_bar`
69    pub const CRAFT_PROGRESS_BAR: i32 = 0x13;
70    /// `set_slot`
71    pub const SET_SLOT: i32 = 0x14;
72    /// `cookie_request`
73    pub const COOKIE_REQUEST: i32 = 0x15;
74    /// `set_cooldown`
75    pub const SET_COOLDOWN: i32 = 0x16;
76    /// `chat_suggestions`
77    pub const CHAT_SUGGESTIONS: i32 = 0x17;
78    /// `custom_payload`
79    pub const CUSTOM_PAYLOAD: i32 = 0x18;
80    /// `damage_event`
81    pub const DAMAGE_EVENT: i32 = 0x19;
82    /// `debug_block_value`
83    pub const DEBUG_BLOCK_VALUE: i32 = 0x1a;
84    /// `debug_chunk_value`
85    pub const DEBUG_CHUNK_VALUE: i32 = 0x1b;
86    /// `debug_entity_value`
87    pub const DEBUG_ENTITY_VALUE: i32 = 0x1c;
88    /// `debug_event`
89    pub const DEBUG_EVENT: i32 = 0x1d;
90    /// `debug_sample`
91    pub const DEBUG_SAMPLE: i32 = 0x1e;
92    /// `hide_message`
93    pub const HIDE_MESSAGE: i32 = 0x1f;
94    /// `kick_disconnect`
95    pub const KICK_DISCONNECT: i32 = 0x20;
96    /// `profileless_chat`
97    pub const PROFILELESS_CHAT: i32 = 0x21;
98    /// `entity_status`
99    pub const ENTITY_STATUS: i32 = 0x22;
100    /// `sync_entity_position`
101    pub const SYNC_ENTITY_POSITION: i32 = 0x23;
102    /// `explosion`
103    pub const EXPLOSION: i32 = 0x24;
104    /// `add_transient_block`
105    pub const ADD_TRANSIENT_BLOCK: i32 = 0x25;
106    /// `unload_chunk`
107    pub const UNLOAD_CHUNK: i32 = 0x26;
108    /// `game_state_change`
109    pub const GAME_STATE_CHANGE: i32 = 0x27;
110    /// `game_rule_values`
111    pub const GAME_RULE_VALUES: i32 = 0x28;
112    /// `game_test_highlight_pos`
113    pub const GAME_TEST_HIGHLIGHT_POS: i32 = 0x29;
114    /// `open_horse_window`
115    pub const OPEN_HORSE_WINDOW: i32 = 0x2a;
116    /// `hurt_animation`
117    pub const HURT_ANIMATION: i32 = 0x2b;
118    /// `initialize_world_border`
119    pub const INITIALIZE_WORLD_BORDER: i32 = 0x2c;
120    /// `keep_alive`
121    pub const KEEP_ALIVE: i32 = 0x2d;
122    /// `map_chunk`
123    pub const MAP_CHUNK: i32 = 0x2e;
124    /// `world_event`
125    pub const WORLD_EVENT: i32 = 0x2f;
126    /// `world_particles`
127    pub const WORLD_PARTICLES: i32 = 0x30;
128    /// `update_light`
129    pub const UPDATE_LIGHT: i32 = 0x31;
130    /// `login`
131    pub const LOGIN: i32 = 0x32;
132    /// `low_disk_space_warning`
133    pub const LOW_DISK_SPACE_WARNING: i32 = 0x33;
134    /// `map`
135    pub const MAP: i32 = 0x34;
136    /// `trade_list`
137    pub const TRADE_LIST: i32 = 0x35;
138    /// `rel_entity_move`
139    pub const REL_ENTITY_MOVE: i32 = 0x36;
140    /// `entity_move_look`
141    pub const ENTITY_MOVE_LOOK: i32 = 0x37;
142    /// `move_minecart`
143    pub const MOVE_MINECART: i32 = 0x38;
144    /// `entity_look`
145    pub const ENTITY_LOOK: i32 = 0x39;
146    /// `vehicle_move`
147    pub const VEHICLE_MOVE: i32 = 0x3a;
148    /// `open_book`
149    pub const OPEN_BOOK: i32 = 0x3b;
150    /// `open_window`
151    pub const OPEN_WINDOW: i32 = 0x3c;
152    /// `open_sign_entity`
153    pub const OPEN_SIGN_ENTITY: i32 = 0x3d;
154    /// `ping`
155    pub const PING: i32 = 0x3e;
156    /// `ping_response`
157    pub const PING_RESPONSE: i32 = 0x3f;
158    /// `craft_recipe_response`
159    pub const CRAFT_RECIPE_RESPONSE: i32 = 0x40;
160    /// `abilities`
161    pub const ABILITIES: i32 = 0x41;
162    /// `player_chat`
163    pub const PLAYER_CHAT: i32 = 0x42;
164    /// `end_combat_event`
165    pub const END_COMBAT_EVENT: i32 = 0x43;
166    /// `enter_combat_event`
167    pub const ENTER_COMBAT_EVENT: i32 = 0x44;
168    /// `death_combat_event`
169    pub const DEATH_COMBAT_EVENT: i32 = 0x45;
170    /// `player_remove`
171    pub const PLAYER_REMOVE: i32 = 0x46;
172    /// `player_info`
173    pub const PLAYER_INFO: i32 = 0x47;
174    /// `face_player`
175    pub const FACE_PLAYER: i32 = 0x48;
176    /// `position`
177    pub const POSITION: i32 = 0x49;
178    /// `player_rotation`
179    pub const PLAYER_ROTATION: i32 = 0x4a;
180    /// `recipe_book_add`
181    pub const RECIPE_BOOK_ADD: i32 = 0x4b;
182    /// `recipe_book_remove`
183    pub const RECIPE_BOOK_REMOVE: i32 = 0x4c;
184    /// `recipe_book_settings`
185    pub const RECIPE_BOOK_SETTINGS: i32 = 0x4d;
186    /// `entity_destroy`
187    pub const ENTITY_DESTROY: i32 = 0x4e;
188    /// `remove_entity_effect`
189    pub const REMOVE_ENTITY_EFFECT: i32 = 0x4f;
190    /// `reset_score`
191    pub const RESET_SCORE: i32 = 0x50;
192    /// `remove_resource_pack`
193    pub const REMOVE_RESOURCE_PACK: i32 = 0x51;
194    /// `add_resource_pack`
195    pub const ADD_RESOURCE_PACK: i32 = 0x52;
196    /// `post_effects`
197    pub const POST_EFFECTS: i32 = 0x53;
198    /// `respawn`
199    pub const RESPAWN: i32 = 0x54;
200    /// `entity_head_rotation`
201    pub const ENTITY_HEAD_ROTATION: i32 = 0x55;
202    /// `multi_block_change`
203    pub const MULTI_BLOCK_CHANGE: i32 = 0x56;
204    /// `select_advancement_tab`
205    pub const SELECT_ADVANCEMENT_TAB: i32 = 0x57;
206    /// `server_data`
207    pub const SERVER_DATA: i32 = 0x58;
208    /// `action_bar`
209    pub const ACTION_BAR: i32 = 0x59;
210    /// `world_border_center`
211    pub const WORLD_BORDER_CENTER: i32 = 0x5a;
212    /// `world_border_lerp_size`
213    pub const WORLD_BORDER_LERP_SIZE: i32 = 0x5b;
214    /// `world_border_size`
215    pub const WORLD_BORDER_SIZE: i32 = 0x5c;
216    /// `world_border_warning_delay`
217    pub const WORLD_BORDER_WARNING_DELAY: i32 = 0x5d;
218    /// `world_border_warning_reach`
219    pub const WORLD_BORDER_WARNING_REACH: i32 = 0x5e;
220    /// `camera`
221    pub const CAMERA: i32 = 0x5f;
222    /// `update_view_position`
223    pub const UPDATE_VIEW_POSITION: i32 = 0x60;
224    /// `update_view_distance`
225    pub const UPDATE_VIEW_DISTANCE: i32 = 0x61;
226    /// `set_cursor_item`
227    pub const SET_CURSOR_ITEM: i32 = 0x62;
228    /// `spawn_position`
229    pub const SPAWN_POSITION: i32 = 0x63;
230    /// `scoreboard_display_objective`
231    pub const SCOREBOARD_DISPLAY_OBJECTIVE: i32 = 0x64;
232    /// `entity_metadata`
233    pub const ENTITY_METADATA: i32 = 0x65;
234    /// `attach_entity`
235    pub const ATTACH_ENTITY: i32 = 0x66;
236    /// `entity_velocity`
237    pub const ENTITY_VELOCITY: i32 = 0x67;
238    /// `entity_equipment`
239    pub const ENTITY_EQUIPMENT: i32 = 0x68;
240    /// `experience`
241    pub const EXPERIENCE: i32 = 0x69;
242    /// `update_health`
243    pub const UPDATE_HEALTH: i32 = 0x6a;
244    /// `held_item_slot`
245    pub const HELD_ITEM_SLOT: i32 = 0x6b;
246    /// `scoreboard_objective`
247    pub const SCOREBOARD_OBJECTIVE: i32 = 0x6c;
248    /// `set_passengers`
249    pub const SET_PASSENGERS: i32 = 0x6d;
250    /// `set_player_inventory`
251    pub const SET_PLAYER_INVENTORY: i32 = 0x6e;
252    /// `teams`
253    pub const TEAMS: i32 = 0x6f;
254    /// `scoreboard_score`
255    pub const SCOREBOARD_SCORE: i32 = 0x70;
256    /// `simulation_distance`
257    pub const SIMULATION_DISTANCE: i32 = 0x71;
258    /// `set_title_subtitle`
259    pub const SET_TITLE_SUBTITLE: i32 = 0x72;
260    /// `update_time`
261    pub const UPDATE_TIME: i32 = 0x73;
262    /// `set_title_text`
263    pub const SET_TITLE_TEXT: i32 = 0x74;
264    /// `set_title_time`
265    pub const SET_TITLE_TIME: i32 = 0x75;
266    /// `entity_sound_effect`
267    pub const ENTITY_SOUND_EFFECT: i32 = 0x76;
268    /// `sound_effect`
269    pub const SOUND_EFFECT: i32 = 0x77;
270    /// `start_configuration`
271    pub const START_CONFIGURATION: i32 = 0x78;
272    /// `stop_sound`
273    pub const STOP_SOUND: i32 = 0x79;
274    /// `store_cookie`
275    pub const STORE_COOKIE: i32 = 0x7a;
276    /// `swing_animation`
277    pub const SWING_ANIMATION: i32 = 0x7b;
278    /// `system_chat`
279    pub const SYSTEM_CHAT: i32 = 0x7c;
280    /// `playerlist_header`
281    pub const PLAYERLIST_HEADER: i32 = 0x7d;
282    /// `nbt_query_response`
283    pub const NBT_QUERY_RESPONSE: i32 = 0x7e;
284    /// `collect`
285    pub const COLLECT: i32 = 0x7f;
286    /// `entity_teleport`
287    pub const ENTITY_TELEPORT: i32 = 0x80;
288    /// `test_instance_block_status`
289    pub const TEST_INSTANCE_BLOCK_STATUS: i32 = 0x81;
290    /// `set_ticking_state`
291    pub const SET_TICKING_STATE: i32 = 0x82;
292    /// `step_tick`
293    pub const STEP_TICK: i32 = 0x83;
294    /// `transfer`
295    pub const TRANSFER: i32 = 0x84;
296    /// `advancements`
297    pub const ADVANCEMENTS: i32 = 0x85;
298    /// `entity_update_attributes`
299    pub const ENTITY_UPDATE_ATTRIBUTES: i32 = 0x86;
300    /// `entity_effect`
301    pub const ENTITY_EFFECT: i32 = 0x87;
302    /// `declare_recipes`
303    pub const DECLARE_RECIPES: i32 = 0x88;
304    /// `tags`
305    pub const TAGS: i32 = 0x89;
306    /// `set_projectile_power`
307    pub const SET_PROJECTILE_POWER: i32 = 0x8a;
308    /// `custom_report_details`
309    pub const CUSTOM_REPORT_DETAILS: i32 = 0x8b;
310    /// `server_links`
311    pub const SERVER_LINKS: i32 = 0x8c;
312    /// `tracked_waypoint`
313    pub const TRACKED_WAYPOINT: i32 = 0x8d;
314    /// `clear_dialog`
315    pub const CLEAR_DIALOG: i32 = 0x8e;
316    /// `show_dialog`
317    pub const SHOW_DIALOG: i32 = 0x8f;
318}
319
320pub use crate::defs::p340::play::clientbound::AdvancementsProgressMapping;
321pub use crate::defs::p340::play::clientbound::AdvancementsProgressMappingValue;
322pub use crate::defs::p754::play::clientbound::StatisticsEntries;
323pub use crate::defs::p775::play::clientbound::AdvancementsAdvancementMappingValueDisplayDataFlags;
324pub use crate::defs::p775::play::clientbound::ChatType;
325pub use crate::defs::p775::play::clientbound::ChatTypeParameterType;
326pub use crate::defs::p775::play::clientbound::ChatTypes;
327pub use crate::defs::p775::play::clientbound::ChunkBiomesBiomes;
328pub use crate::defs::p775::play::clientbound::CustomReportDetailsDetails;
329pub use crate::defs::p775::play::clientbound::DeclareRecipesRecipes;
330pub use crate::defs::p775::play::clientbound::DifficultyDifficulty;
331pub use crate::defs::p775::play::clientbound::EntityUpdateAttributesPropertiesModifiers;
332pub use crate::defs::p775::play::clientbound::GameStateChangeReason;
333pub use crate::defs::p775::play::clientbound::MapChunkHeightmaps;
334pub use crate::defs::p775::play::clientbound::MapChunkHeightmapsType;
335pub use crate::defs::p775::play::clientbound::MapIcons;
336pub use crate::defs::p775::play::clientbound::MoveMinecartSteps;
337pub use crate::defs::p775::play::clientbound::MultiBlockChangeChunkCoordinates;
338pub use crate::defs::p775::play::clientbound::OpenBookHand;
339pub use crate::defs::p775::play::clientbound::PlayerInfoAction;
340pub use crate::defs::p775::play::clientbound::PlayerInfoData;
341pub use crate::defs::p775::play::clientbound::PositionUpdateRelatives;
342pub use crate::defs::p775::play::clientbound::RecipeBookAddEntriesFlags;
343pub use crate::defs::p775::play::clientbound::RecipeBookAddEntriesRecipeCategory;
344pub use crate::defs::p775::play::clientbound::RecipeBookSetting;
345pub use crate::defs::p775::play::clientbound::RecipeDisplayType;
346pub use crate::defs::p775::play::clientbound::ServerLinksLinks;
347pub use crate::defs::p775::play::clientbound::SlotDisplayType;
348pub use crate::defs::p775::play::clientbound::TabCompleteMatches;
349pub use crate::defs::p775::play::clientbound::TagsTags;
350pub use crate::defs::p775::play::clientbound::TeamsBodyAddCollisionRule;
351pub use crate::defs::p775::play::clientbound::TeamsBodyAddFlags;
352pub use crate::defs::p775::play::clientbound::TeamsBodyAddNameTagVisibility;
353pub use crate::defs::p775::play::clientbound::TeamsMode;
354pub use crate::defs::p775::play::clientbound::TrackedWaypointOperation;
355pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypoint;
356pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointBody;
357pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointBodyFalse;
358pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointBodyTrue;
359pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointData;
360pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointDataChunk;
361pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointIcon;
362pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointIconColor;
363pub use crate::defs::p775::play::clientbound::TrackedWaypointWaypointType;
364pub use crate::defs::p775::play::clientbound::UpdateTimeClockUpdates;
365pub use crate::defs::p776::play::clientbound::EntityUpdateAttributesProperties;
366pub use crate::defs::p776::play::clientbound::EntityUpdateAttributesPropertiesKey;
367pub use crate::defs::p776::play::clientbound::TeamsBodyAdd;
368pub use crate::defs::p777::play::clientbound::AdvancementsAdvancementMapping;
369pub use crate::defs::p777::play::clientbound::AdvancementsAdvancementMappingValue;
370pub use crate::defs::p777::play::clientbound::AdvancementsAdvancementMappingValueDisplayData;
371pub use crate::defs::p777::play::clientbound::DeclareRecipesStoneCutterRecipes;
372pub use crate::defs::p777::play::clientbound::EntityEquipmentEquipments;
373pub use crate::defs::p777::play::clientbound::ExplosionParticleEntry;
374pub use crate::defs::p777::play::clientbound::ExplosionParticleInfo;
375pub use crate::defs::p777::play::clientbound::OpenSignEntitySide;
376pub use crate::defs::p777::play::clientbound::RecipeBookAddEntries;
377pub use crate::defs::p777::play::clientbound::RecipeBookAddEntriesRecipe;
378pub use crate::defs::p777::play::clientbound::RecipeDisplay;
379pub use crate::defs::p777::play::clientbound::RecipeDisplayData;
380pub use crate::defs::p777::play::clientbound::RecipeDisplayDataCraftingShaped;
381pub use crate::defs::p777::play::clientbound::RecipeDisplayDataCraftingShapeless;
382pub use crate::defs::p777::play::clientbound::RecipeDisplayDataFurnace;
383pub use crate::defs::p777::play::clientbound::RecipeDisplayDataSmithing;
384pub use crate::defs::p777::play::clientbound::RecipeDisplayDataStonecutter;
385pub use crate::defs::p777::play::clientbound::SlotDisplay;
386pub use crate::defs::p777::play::clientbound::SlotDisplayData;
387pub use crate::defs::p777::play::clientbound::SlotDisplayDataDyedSlotDemo;
388pub use crate::defs::p777::play::clientbound::SlotDisplayDataOnlyWithComponent;
389pub use crate::defs::p777::play::clientbound::SlotDisplayDataSmithingTrim;
390pub use crate::defs::p777::play::clientbound::SlotDisplayDataWithAnyPotion;
391pub use crate::defs::p777::play::clientbound::SlotDisplayDataWithRemainder;
392pub use crate::defs::p777::play::clientbound::SpawnInfo;
393pub use crate::defs::p777::play::clientbound::SpawnInfoGamemode;
394pub use crate::defs::p777::play::clientbound::SwingAnimationAnimation;
395pub use crate::defs::p777::play::clientbound::SwingAnimationAnimationType;
396pub use crate::defs::p777::play::clientbound::SwingAnimationHand;
397pub use crate::defs::p777::play::clientbound::SyncEntityPositionPath;
398pub use crate::defs::p777::play::clientbound::SyncEntityPositionPathData;
399pub use crate::defs::p777::play::clientbound::SyncEntityPositionPathDataStepped;
400pub use crate::defs::p777::play::clientbound::SyncEntityPositionPathType;
401pub use crate::defs::p777::play::clientbound::TradeListTrades;
402pub use crate::defs::p777::play::clientbound::TradeListTradesInputItem1;
403pub use crate::defs::p777::play::clientbound::TradeListTradesInputItem2;
404pub use crate::defs::p777::play::clientbound::WorldParticlesRandomization;
405
406/// `bundle_delimiter` (clientbound play, id 0x00).
407pub type BundleDelimiter = crate::defs::p775::play::clientbound::BundleDelimiter<777>;
408impl crate::packet::Packet for BundleDelimiter {
409    const ID: i32 = id::BUNDLE_DELIMITER;
410    const NAME: &'static str = "bundle_delimiter";
411    const STATE: State = State::Play;
412    const DIRECTION: Direction = Direction::Clientbound;
413}
414impl From<BundleDelimiter> for ClientboundPlayPacket {
415    fn from(p: BundleDelimiter) -> Self {
416        Self::BundleDelimiter(p)
417    }
418}
419
420/// `spawn_entity` (clientbound play, id 0x01).
421pub type SpawnEntity = crate::defs::p775::play::clientbound::SpawnEntity<777>;
422impl crate::packet::Packet for SpawnEntity {
423    const ID: i32 = id::SPAWN_ENTITY;
424    const NAME: &'static str = "spawn_entity";
425    const STATE: State = State::Play;
426    const DIRECTION: Direction = Direction::Clientbound;
427}
428impl From<SpawnEntity> for ClientboundPlayPacket {
429    fn from(p: SpawnEntity) -> Self {
430        Self::SpawnEntity(p)
431    }
432}
433
434/// `animation` (clientbound play, id 0x02).
435pub type Animation = crate::defs::p47::play::clientbound::Animation<777>;
436impl crate::packet::Packet for Animation {
437    const ID: i32 = id::ANIMATION;
438    const NAME: &'static str = "animation";
439    const STATE: State = State::Play;
440    const DIRECTION: Direction = Direction::Clientbound;
441}
442impl From<Animation> for ClientboundPlayPacket {
443    fn from(p: Animation) -> Self {
444        Self::Animation(p)
445    }
446}
447
448/// `statistics` (clientbound play, id 0x03).
449pub type Statistics = crate::defs::p754::play::clientbound::Statistics<777>;
450impl crate::packet::Packet for Statistics {
451    const ID: i32 = id::STATISTICS;
452    const NAME: &'static str = "statistics";
453    const STATE: State = State::Play;
454    const DIRECTION: Direction = Direction::Clientbound;
455}
456impl From<Statistics> for ClientboundPlayPacket {
457    fn from(p: Statistics) -> Self {
458        Self::Statistics(p)
459    }
460}
461
462/// `acknowledge_player_digging` (clientbound play, id 0x04).
463pub type AcknowledgePlayerDigging =
464    crate::defs::p775::play::clientbound::AcknowledgePlayerDigging<777>;
465impl crate::packet::Packet for AcknowledgePlayerDigging {
466    const ID: i32 = id::ACKNOWLEDGE_PLAYER_DIGGING;
467    const NAME: &'static str = "acknowledge_player_digging";
468    const STATE: State = State::Play;
469    const DIRECTION: Direction = Direction::Clientbound;
470}
471impl From<AcknowledgePlayerDigging> for ClientboundPlayPacket {
472    fn from(p: AcknowledgePlayerDigging) -> Self {
473        Self::AcknowledgePlayerDigging(p)
474    }
475}
476
477/// `block_break_animation` (clientbound play, id 0x05).
478pub type BlockBreakAnimation = crate::defs::p754::play::clientbound::BlockBreakAnimation<777>;
479impl crate::packet::Packet for BlockBreakAnimation {
480    const ID: i32 = id::BLOCK_BREAK_ANIMATION;
481    const NAME: &'static str = "block_break_animation";
482    const STATE: State = State::Play;
483    const DIRECTION: Direction = Direction::Clientbound;
484}
485impl From<BlockBreakAnimation> for ClientboundPlayPacket {
486    fn from(p: BlockBreakAnimation) -> Self {
487        Self::BlockBreakAnimation(p)
488    }
489}
490
491/// `tile_entity_data` (clientbound play, id 0x06).
492pub type TileEntityData = crate::defs::p775::play::clientbound::TileEntityData<777>;
493impl crate::packet::Packet for TileEntityData {
494    const ID: i32 = id::TILE_ENTITY_DATA;
495    const NAME: &'static str = "tile_entity_data";
496    const STATE: State = State::Play;
497    const DIRECTION: Direction = Direction::Clientbound;
498}
499impl From<TileEntityData> for ClientboundPlayPacket {
500    fn from(p: TileEntityData) -> Self {
501        Self::TileEntityData(p)
502    }
503}
504
505/// `block_action` (clientbound play, id 0x07).
506pub type BlockAction = crate::defs::p754::play::clientbound::BlockAction<777>;
507impl crate::packet::Packet for BlockAction {
508    const ID: i32 = id::BLOCK_ACTION;
509    const NAME: &'static str = "block_action";
510    const STATE: State = State::Play;
511    const DIRECTION: Direction = Direction::Clientbound;
512}
513impl From<BlockAction> for ClientboundPlayPacket {
514    fn from(p: BlockAction) -> Self {
515        Self::BlockAction(p)
516    }
517}
518
519/// `block_change` (clientbound play, id 0x08).
520pub type BlockChange = crate::defs::p754::play::clientbound::BlockChange<777>;
521impl crate::packet::Packet for BlockChange {
522    const ID: i32 = id::BLOCK_CHANGE;
523    const NAME: &'static str = "block_change";
524    const STATE: State = State::Play;
525    const DIRECTION: Direction = Direction::Clientbound;
526}
527impl From<BlockChange> for ClientboundPlayPacket {
528    fn from(p: BlockChange) -> Self {
529        Self::BlockChange(p)
530    }
531}
532
533/// `boss_bar` (clientbound play, id 0x09).
534pub type BossBar = crate::defs::p775::play::clientbound::BossBar<777>;
535impl crate::packet::Packet for BossBar {
536    const ID: i32 = id::BOSS_BAR;
537    const NAME: &'static str = "boss_bar";
538    const STATE: State = State::Play;
539    const DIRECTION: Direction = Direction::Clientbound;
540}
541impl From<BossBar> for ClientboundPlayPacket {
542    fn from(p: BossBar) -> Self {
543        Self::BossBar(p)
544    }
545}
546
547/// `difficulty` (clientbound play, id 0x0a).
548pub type Difficulty = crate::defs::p775::play::clientbound::Difficulty<777>;
549impl crate::packet::Packet for Difficulty {
550    const ID: i32 = id::DIFFICULTY;
551    const NAME: &'static str = "difficulty";
552    const STATE: State = State::Play;
553    const DIRECTION: Direction = Direction::Clientbound;
554}
555impl From<Difficulty> for ClientboundPlayPacket {
556    fn from(p: Difficulty) -> Self {
557        Self::Difficulty(p)
558    }
559}
560
561/// `chunk_batch_finished` (clientbound play, id 0x0b).
562pub type ChunkBatchFinished = crate::defs::p775::play::clientbound::ChunkBatchFinished<777>;
563impl crate::packet::Packet for ChunkBatchFinished {
564    const ID: i32 = id::CHUNK_BATCH_FINISHED;
565    const NAME: &'static str = "chunk_batch_finished";
566    const STATE: State = State::Play;
567    const DIRECTION: Direction = Direction::Clientbound;
568}
569impl From<ChunkBatchFinished> for ClientboundPlayPacket {
570    fn from(p: ChunkBatchFinished) -> Self {
571        Self::ChunkBatchFinished(p)
572    }
573}
574
575/// `chunk_batch_start` (clientbound play, id 0x0c).
576pub type ChunkBatchStart = crate::defs::p775::play::clientbound::ChunkBatchStart<777>;
577impl crate::packet::Packet for ChunkBatchStart {
578    const ID: i32 = id::CHUNK_BATCH_START;
579    const NAME: &'static str = "chunk_batch_start";
580    const STATE: State = State::Play;
581    const DIRECTION: Direction = Direction::Clientbound;
582}
583impl From<ChunkBatchStart> for ClientboundPlayPacket {
584    fn from(p: ChunkBatchStart) -> Self {
585        Self::ChunkBatchStart(p)
586    }
587}
588
589/// `chunk_biomes` (clientbound play, id 0x0d).
590pub type ChunkBiomes = crate::defs::p775::play::clientbound::ChunkBiomes<777>;
591impl crate::packet::Packet for ChunkBiomes {
592    const ID: i32 = id::CHUNK_BIOMES;
593    const NAME: &'static str = "chunk_biomes";
594    const STATE: State = State::Play;
595    const DIRECTION: Direction = Direction::Clientbound;
596}
597impl From<ChunkBiomes> for ClientboundPlayPacket {
598    fn from(p: ChunkBiomes) -> Self {
599        Self::ChunkBiomes(p)
600    }
601}
602
603/// `clear_titles` (clientbound play, id 0x0e).
604pub type ClearTitles = crate::defs::p775::play::clientbound::ClearTitles<777>;
605impl crate::packet::Packet for ClearTitles {
606    const ID: i32 = id::CLEAR_TITLES;
607    const NAME: &'static str = "clear_titles";
608    const STATE: State = State::Play;
609    const DIRECTION: Direction = Direction::Clientbound;
610}
611impl From<ClearTitles> for ClientboundPlayPacket {
612    fn from(p: ClearTitles) -> Self {
613        Self::ClearTitles(p)
614    }
615}
616
617/// `tab_complete` (clientbound play, id 0x0f).
618pub type TabComplete = crate::defs::p775::play::clientbound::TabComplete<777>;
619impl crate::packet::Packet for TabComplete {
620    const ID: i32 = id::TAB_COMPLETE;
621    const NAME: &'static str = "tab_complete";
622    const STATE: State = State::Play;
623    const DIRECTION: Direction = Direction::Clientbound;
624}
625impl From<TabComplete> for ClientboundPlayPacket {
626    fn from(p: TabComplete) -> Self {
627        Self::TabComplete(p)
628    }
629}
630
631/// `declare_commands` (clientbound play, id 0x10).
632pub type DeclareCommands = crate::defs::p777::play::clientbound::DeclareCommands<777>;
633impl crate::packet::Packet for DeclareCommands {
634    const ID: i32 = id::DECLARE_COMMANDS;
635    const NAME: &'static str = "declare_commands";
636    const STATE: State = State::Play;
637    const DIRECTION: Direction = Direction::Clientbound;
638}
639impl From<DeclareCommands> for ClientboundPlayPacket {
640    fn from(p: DeclareCommands) -> Self {
641        Self::DeclareCommands(p)
642    }
643}
644
645/// `close_window` (clientbound play, id 0x11).
646pub type CloseWindow = crate::defs::p775::play::clientbound::CloseWindow<777>;
647impl crate::packet::Packet for CloseWindow {
648    const ID: i32 = id::CLOSE_WINDOW;
649    const NAME: &'static str = "close_window";
650    const STATE: State = State::Play;
651    const DIRECTION: Direction = Direction::Clientbound;
652}
653impl From<CloseWindow> for ClientboundPlayPacket {
654    fn from(p: CloseWindow) -> Self {
655        Self::CloseWindow(p)
656    }
657}
658
659/// `window_items` (clientbound play, id 0x12).
660pub type WindowItems = crate::defs::p777::play::clientbound::WindowItems<777>;
661impl crate::packet::Packet for WindowItems {
662    const ID: i32 = id::WINDOW_ITEMS;
663    const NAME: &'static str = "window_items";
664    const STATE: State = State::Play;
665    const DIRECTION: Direction = Direction::Clientbound;
666}
667impl From<WindowItems> for ClientboundPlayPacket {
668    fn from(p: WindowItems) -> Self {
669        Self::WindowItems(p)
670    }
671}
672
673/// `craft_progress_bar` (clientbound play, id 0x13).
674pub type CraftProgressBar = crate::defs::p775::play::clientbound::CraftProgressBar<777>;
675impl crate::packet::Packet for CraftProgressBar {
676    const ID: i32 = id::CRAFT_PROGRESS_BAR;
677    const NAME: &'static str = "craft_progress_bar";
678    const STATE: State = State::Play;
679    const DIRECTION: Direction = Direction::Clientbound;
680}
681impl From<CraftProgressBar> for ClientboundPlayPacket {
682    fn from(p: CraftProgressBar) -> Self {
683        Self::CraftProgressBar(p)
684    }
685}
686
687/// `set_slot` (clientbound play, id 0x14).
688pub type SetSlot = crate::defs::p777::play::clientbound::SetSlot<777>;
689impl crate::packet::Packet for SetSlot {
690    const ID: i32 = id::SET_SLOT;
691    const NAME: &'static str = "set_slot";
692    const STATE: State = State::Play;
693    const DIRECTION: Direction = Direction::Clientbound;
694}
695impl From<SetSlot> for ClientboundPlayPacket {
696    fn from(p: SetSlot) -> Self {
697        Self::SetSlot(p)
698    }
699}
700
701/// `cookie_request` (clientbound play, id 0x15).
702pub type CookieRequest = crate::defs::p775::play::clientbound::CookieRequest<777>;
703impl crate::packet::Packet for CookieRequest {
704    const ID: i32 = id::COOKIE_REQUEST;
705    const NAME: &'static str = "cookie_request";
706    const STATE: State = State::Play;
707    const DIRECTION: Direction = Direction::Clientbound;
708}
709impl From<CookieRequest> for ClientboundPlayPacket {
710    fn from(p: CookieRequest) -> Self {
711        Self::CookieRequest(p)
712    }
713}
714
715/// `set_cooldown` (clientbound play, id 0x16).
716pub type SetCooldown = crate::defs::p775::play::clientbound::SetCooldown<777>;
717impl crate::packet::Packet for SetCooldown {
718    const ID: i32 = id::SET_COOLDOWN;
719    const NAME: &'static str = "set_cooldown";
720    const STATE: State = State::Play;
721    const DIRECTION: Direction = Direction::Clientbound;
722}
723impl From<SetCooldown> for ClientboundPlayPacket {
724    fn from(p: SetCooldown) -> Self {
725        Self::SetCooldown(p)
726    }
727}
728
729/// `chat_suggestions` (clientbound play, id 0x17).
730pub type ChatSuggestions = crate::defs::p775::play::clientbound::ChatSuggestions<777>;
731impl crate::packet::Packet for ChatSuggestions {
732    const ID: i32 = id::CHAT_SUGGESTIONS;
733    const NAME: &'static str = "chat_suggestions";
734    const STATE: State = State::Play;
735    const DIRECTION: Direction = Direction::Clientbound;
736}
737impl From<ChatSuggestions> for ClientboundPlayPacket {
738    fn from(p: ChatSuggestions) -> Self {
739        Self::ChatSuggestions(p)
740    }
741}
742
743/// `custom_payload` (clientbound play, id 0x18).
744pub type CustomPayload = crate::defs::p47::play::clientbound::CustomPayload<777>;
745impl crate::packet::Packet for CustomPayload {
746    const ID: i32 = id::CUSTOM_PAYLOAD;
747    const NAME: &'static str = "custom_payload";
748    const STATE: State = State::Play;
749    const DIRECTION: Direction = Direction::Clientbound;
750}
751impl From<CustomPayload> for ClientboundPlayPacket {
752    fn from(p: CustomPayload) -> Self {
753        Self::CustomPayload(p)
754    }
755}
756
757/// `damage_event` (clientbound play, id 0x19).
758pub type DamageEvent = crate::defs::p775::play::clientbound::DamageEvent<777>;
759impl crate::packet::Packet for DamageEvent {
760    const ID: i32 = id::DAMAGE_EVENT;
761    const NAME: &'static str = "damage_event";
762    const STATE: State = State::Play;
763    const DIRECTION: Direction = Direction::Clientbound;
764}
765impl From<DamageEvent> for ClientboundPlayPacket {
766    fn from(p: DamageEvent) -> Self {
767        Self::DamageEvent(p)
768    }
769}
770
771/// `debug_block_value` (clientbound play, id 0x1a).
772pub type DebugBlockValue = crate::defs::p777::play::clientbound::DebugBlockValue<777>;
773impl crate::packet::Packet for DebugBlockValue {
774    const ID: i32 = id::DEBUG_BLOCK_VALUE;
775    const NAME: &'static str = "debug_block_value";
776    const STATE: State = State::Play;
777    const DIRECTION: Direction = Direction::Clientbound;
778}
779impl From<DebugBlockValue> for ClientboundPlayPacket {
780    fn from(p: DebugBlockValue) -> Self {
781        Self::DebugBlockValue(p)
782    }
783}
784
785/// `debug_chunk_value` (clientbound play, id 0x1b).
786pub type DebugChunkValue = crate::defs::p777::play::clientbound::DebugChunkValue<777>;
787impl crate::packet::Packet for DebugChunkValue {
788    const ID: i32 = id::DEBUG_CHUNK_VALUE;
789    const NAME: &'static str = "debug_chunk_value";
790    const STATE: State = State::Play;
791    const DIRECTION: Direction = Direction::Clientbound;
792}
793impl From<DebugChunkValue> for ClientboundPlayPacket {
794    fn from(p: DebugChunkValue) -> Self {
795        Self::DebugChunkValue(p)
796    }
797}
798
799/// `debug_entity_value` (clientbound play, id 0x1c).
800pub type DebugEntityValue = crate::defs::p777::play::clientbound::DebugEntityValue<777>;
801impl crate::packet::Packet for DebugEntityValue {
802    const ID: i32 = id::DEBUG_ENTITY_VALUE;
803    const NAME: &'static str = "debug_entity_value";
804    const STATE: State = State::Play;
805    const DIRECTION: Direction = Direction::Clientbound;
806}
807impl From<DebugEntityValue> for ClientboundPlayPacket {
808    fn from(p: DebugEntityValue) -> Self {
809        Self::DebugEntityValue(p)
810    }
811}
812
813/// `debug_event` (clientbound play, id 0x1d).
814pub type DebugEvent = crate::defs::p777::play::clientbound::DebugEvent<777>;
815impl crate::packet::Packet for DebugEvent {
816    const ID: i32 = id::DEBUG_EVENT;
817    const NAME: &'static str = "debug_event";
818    const STATE: State = State::Play;
819    const DIRECTION: Direction = Direction::Clientbound;
820}
821impl From<DebugEvent> for ClientboundPlayPacket {
822    fn from(p: DebugEvent) -> Self {
823        Self::DebugEvent(p)
824    }
825}
826
827/// `debug_sample` (clientbound play, id 0x1e).
828pub type DebugSample = crate::defs::p775::play::clientbound::DebugSample<777>;
829impl crate::packet::Packet for DebugSample {
830    const ID: i32 = id::DEBUG_SAMPLE;
831    const NAME: &'static str = "debug_sample";
832    const STATE: State = State::Play;
833    const DIRECTION: Direction = Direction::Clientbound;
834}
835impl From<DebugSample> for ClientboundPlayPacket {
836    fn from(p: DebugSample) -> Self {
837        Self::DebugSample(p)
838    }
839}
840
841/// `hide_message` (clientbound play, id 0x1f).
842pub type HideMessage = crate::defs::p775::play::clientbound::HideMessage<777>;
843impl crate::packet::Packet for HideMessage {
844    const ID: i32 = id::HIDE_MESSAGE;
845    const NAME: &'static str = "hide_message";
846    const STATE: State = State::Play;
847    const DIRECTION: Direction = Direction::Clientbound;
848}
849impl From<HideMessage> for ClientboundPlayPacket {
850    fn from(p: HideMessage) -> Self {
851        Self::HideMessage(p)
852    }
853}
854
855/// `kick_disconnect` (clientbound play, id 0x20).
856pub type KickDisconnect = crate::defs::p775::play::clientbound::KickDisconnect<777>;
857impl crate::packet::Packet for KickDisconnect {
858    const ID: i32 = id::KICK_DISCONNECT;
859    const NAME: &'static str = "kick_disconnect";
860    const STATE: State = State::Play;
861    const DIRECTION: Direction = Direction::Clientbound;
862}
863impl From<KickDisconnect> for ClientboundPlayPacket {
864    fn from(p: KickDisconnect) -> Self {
865        Self::KickDisconnect(p)
866    }
867}
868
869/// `profileless_chat` (clientbound play, id 0x21).
870pub type ProfilelessChat = crate::defs::p775::play::clientbound::ProfilelessChat<777>;
871impl crate::packet::Packet for ProfilelessChat {
872    const ID: i32 = id::PROFILELESS_CHAT;
873    const NAME: &'static str = "profileless_chat";
874    const STATE: State = State::Play;
875    const DIRECTION: Direction = Direction::Clientbound;
876}
877impl From<ProfilelessChat> for ClientboundPlayPacket {
878    fn from(p: ProfilelessChat) -> Self {
879        Self::ProfilelessChat(p)
880    }
881}
882
883/// `entity_status` (clientbound play, id 0x22).
884pub type EntityStatus = crate::defs::p47::play::clientbound::EntityStatus<777>;
885impl crate::packet::Packet for EntityStatus {
886    const ID: i32 = id::ENTITY_STATUS;
887    const NAME: &'static str = "entity_status";
888    const STATE: State = State::Play;
889    const DIRECTION: Direction = Direction::Clientbound;
890}
891impl From<EntityStatus> for ClientboundPlayPacket {
892    fn from(p: EntityStatus) -> Self {
893        Self::EntityStatus(p)
894    }
895}
896
897/// `sync_entity_position` (clientbound play, id 0x23).
898pub type SyncEntityPosition = crate::defs::p777::play::clientbound::SyncEntityPosition<777>;
899impl crate::packet::Packet for SyncEntityPosition {
900    const ID: i32 = id::SYNC_ENTITY_POSITION;
901    const NAME: &'static str = "sync_entity_position";
902    const STATE: State = State::Play;
903    const DIRECTION: Direction = Direction::Clientbound;
904}
905impl From<SyncEntityPosition> for ClientboundPlayPacket {
906    fn from(p: SyncEntityPosition) -> Self {
907        Self::SyncEntityPosition(p)
908    }
909}
910
911/// `explosion` (clientbound play, id 0x24).
912pub type Explosion = crate::defs::p777::play::clientbound::Explosion<777>;
913impl crate::packet::Packet for Explosion {
914    const ID: i32 = id::EXPLOSION;
915    const NAME: &'static str = "explosion";
916    const STATE: State = State::Play;
917    const DIRECTION: Direction = Direction::Clientbound;
918}
919impl From<Explosion> for ClientboundPlayPacket {
920    fn from(p: Explosion) -> Self {
921        Self::Explosion(p)
922    }
923}
924
925/// `add_transient_block` (clientbound play, id 0x25).
926pub type AddTransientBlock = crate::defs::p777::play::clientbound::AddTransientBlock<777>;
927impl crate::packet::Packet for AddTransientBlock {
928    const ID: i32 = id::ADD_TRANSIENT_BLOCK;
929    const NAME: &'static str = "add_transient_block";
930    const STATE: State = State::Play;
931    const DIRECTION: Direction = Direction::Clientbound;
932}
933impl From<AddTransientBlock> for ClientboundPlayPacket {
934    fn from(p: AddTransientBlock) -> Self {
935        Self::AddTransientBlock(p)
936    }
937}
938
939/// `unload_chunk` (clientbound play, id 0x26).
940pub type UnloadChunk = crate::defs::p775::play::clientbound::UnloadChunk<777>;
941impl crate::packet::Packet for UnloadChunk {
942    const ID: i32 = id::UNLOAD_CHUNK;
943    const NAME: &'static str = "unload_chunk";
944    const STATE: State = State::Play;
945    const DIRECTION: Direction = Direction::Clientbound;
946}
947impl From<UnloadChunk> for ClientboundPlayPacket {
948    fn from(p: UnloadChunk) -> Self {
949        Self::UnloadChunk(p)
950    }
951}
952
953/// `game_state_change` (clientbound play, id 0x27).
954pub type GameStateChange = crate::defs::p775::play::clientbound::GameStateChange<777>;
955impl crate::packet::Packet for GameStateChange {
956    const ID: i32 = id::GAME_STATE_CHANGE;
957    const NAME: &'static str = "game_state_change";
958    const STATE: State = State::Play;
959    const DIRECTION: Direction = Direction::Clientbound;
960}
961impl From<GameStateChange> for ClientboundPlayPacket {
962    fn from(p: GameStateChange) -> Self {
963        Self::GameStateChange(p)
964    }
965}
966
967/// `game_rule_values` (clientbound play, id 0x28).
968pub type GameRuleValues = crate::defs::p775::play::clientbound::GameRuleValues<777>;
969impl crate::packet::Packet for GameRuleValues {
970    const ID: i32 = id::GAME_RULE_VALUES;
971    const NAME: &'static str = "game_rule_values";
972    const STATE: State = State::Play;
973    const DIRECTION: Direction = Direction::Clientbound;
974}
975impl From<GameRuleValues> for ClientboundPlayPacket {
976    fn from(p: GameRuleValues) -> Self {
977        Self::GameRuleValues(p)
978    }
979}
980
981/// `game_test_highlight_pos` (clientbound play, id 0x29).
982pub type GameTestHighlightPos = crate::defs::p775::play::clientbound::GameTestHighlightPos<777>;
983impl crate::packet::Packet for GameTestHighlightPos {
984    const ID: i32 = id::GAME_TEST_HIGHLIGHT_POS;
985    const NAME: &'static str = "game_test_highlight_pos";
986    const STATE: State = State::Play;
987    const DIRECTION: Direction = Direction::Clientbound;
988}
989impl From<GameTestHighlightPos> for ClientboundPlayPacket {
990    fn from(p: GameTestHighlightPos) -> Self {
991        Self::GameTestHighlightPos(p)
992    }
993}
994
995/// `open_horse_window` (clientbound play, id 0x2a).
996pub type OpenHorseWindow = crate::defs::p775::play::clientbound::OpenHorseWindow<777>;
997impl crate::packet::Packet for OpenHorseWindow {
998    const ID: i32 = id::OPEN_HORSE_WINDOW;
999    const NAME: &'static str = "open_horse_window";
1000    const STATE: State = State::Play;
1001    const DIRECTION: Direction = Direction::Clientbound;
1002}
1003impl From<OpenHorseWindow> for ClientboundPlayPacket {
1004    fn from(p: OpenHorseWindow) -> Self {
1005        Self::OpenHorseWindow(p)
1006    }
1007}
1008
1009/// `hurt_animation` (clientbound play, id 0x2b).
1010pub type HurtAnimation = crate::defs::p775::play::clientbound::HurtAnimation<777>;
1011impl crate::packet::Packet for HurtAnimation {
1012    const ID: i32 = id::HURT_ANIMATION;
1013    const NAME: &'static str = "hurt_animation";
1014    const STATE: State = State::Play;
1015    const DIRECTION: Direction = Direction::Clientbound;
1016}
1017impl From<HurtAnimation> for ClientboundPlayPacket {
1018    fn from(p: HurtAnimation) -> Self {
1019        Self::HurtAnimation(p)
1020    }
1021}
1022
1023/// `initialize_world_border` (clientbound play, id 0x2c).
1024pub type InitializeWorldBorder = crate::defs::p775::play::clientbound::InitializeWorldBorder<777>;
1025impl crate::packet::Packet for InitializeWorldBorder {
1026    const ID: i32 = id::INITIALIZE_WORLD_BORDER;
1027    const NAME: &'static str = "initialize_world_border";
1028    const STATE: State = State::Play;
1029    const DIRECTION: Direction = Direction::Clientbound;
1030}
1031impl From<InitializeWorldBorder> for ClientboundPlayPacket {
1032    fn from(p: InitializeWorldBorder) -> Self {
1033        Self::InitializeWorldBorder(p)
1034    }
1035}
1036
1037/// `keep_alive` (clientbound play, id 0x2d).
1038pub type KeepAlive = crate::defs::p340::play::clientbound::KeepAlive<777>;
1039impl crate::packet::Packet for KeepAlive {
1040    const ID: i32 = id::KEEP_ALIVE;
1041    const NAME: &'static str = "keep_alive";
1042    const STATE: State = State::Play;
1043    const DIRECTION: Direction = Direction::Clientbound;
1044}
1045impl From<KeepAlive> for ClientboundPlayPacket {
1046    fn from(p: KeepAlive) -> Self {
1047        Self::KeepAlive(p)
1048    }
1049}
1050
1051/// `map_chunk` (clientbound play, id 0x2e).
1052pub type MapChunk = crate::defs::p777::play::clientbound::MapChunk<777>;
1053impl crate::packet::Packet for MapChunk {
1054    const ID: i32 = id::MAP_CHUNK;
1055    const NAME: &'static str = "map_chunk";
1056    const STATE: State = State::Play;
1057    const DIRECTION: Direction = Direction::Clientbound;
1058}
1059impl From<MapChunk> for ClientboundPlayPacket {
1060    fn from(p: MapChunk) -> Self {
1061        Self::MapChunk(p)
1062    }
1063}
1064
1065/// `world_event` (clientbound play, id 0x2f).
1066pub type WorldEvent = crate::defs::p754::play::clientbound::WorldEvent<777>;
1067impl crate::packet::Packet for WorldEvent {
1068    const ID: i32 = id::WORLD_EVENT;
1069    const NAME: &'static str = "world_event";
1070    const STATE: State = State::Play;
1071    const DIRECTION: Direction = Direction::Clientbound;
1072}
1073impl From<WorldEvent> for ClientboundPlayPacket {
1074    fn from(p: WorldEvent) -> Self {
1075        Self::WorldEvent(p)
1076    }
1077}
1078
1079/// `world_particles` (clientbound play, id 0x30).
1080pub type WorldParticles = crate::defs::p777::play::clientbound::WorldParticles<777>;
1081impl crate::packet::Packet for WorldParticles {
1082    const ID: i32 = id::WORLD_PARTICLES;
1083    const NAME: &'static str = "world_particles";
1084    const STATE: State = State::Play;
1085    const DIRECTION: Direction = Direction::Clientbound;
1086}
1087impl From<WorldParticles> for ClientboundPlayPacket {
1088    fn from(p: WorldParticles) -> Self {
1089        Self::WorldParticles(p)
1090    }
1091}
1092
1093/// `update_light` (clientbound play, id 0x31).
1094pub type UpdateLight = crate::defs::p777::play::clientbound::UpdateLight<777>;
1095impl crate::packet::Packet for UpdateLight {
1096    const ID: i32 = id::UPDATE_LIGHT;
1097    const NAME: &'static str = "update_light";
1098    const STATE: State = State::Play;
1099    const DIRECTION: Direction = Direction::Clientbound;
1100}
1101impl From<UpdateLight> for ClientboundPlayPacket {
1102    fn from(p: UpdateLight) -> Self {
1103        Self::UpdateLight(p)
1104    }
1105}
1106
1107/// `login` (clientbound play, id 0x32).
1108pub type Login = crate::defs::p777::play::clientbound::Login<777>;
1109impl crate::packet::Packet for Login {
1110    const ID: i32 = id::LOGIN;
1111    const NAME: &'static str = "login";
1112    const STATE: State = State::Play;
1113    const DIRECTION: Direction = Direction::Clientbound;
1114}
1115impl From<Login> for ClientboundPlayPacket {
1116    fn from(p: Login) -> Self {
1117        Self::Login(p)
1118    }
1119}
1120
1121/// `low_disk_space_warning` (clientbound play, id 0x33).
1122pub type LowDiskSpaceWarning = crate::defs::p775::play::clientbound::LowDiskSpaceWarning<777>;
1123impl crate::packet::Packet for LowDiskSpaceWarning {
1124    const ID: i32 = id::LOW_DISK_SPACE_WARNING;
1125    const NAME: &'static str = "low_disk_space_warning";
1126    const STATE: State = State::Play;
1127    const DIRECTION: Direction = Direction::Clientbound;
1128}
1129impl From<LowDiskSpaceWarning> for ClientboundPlayPacket {
1130    fn from(p: LowDiskSpaceWarning) -> Self {
1131        Self::LowDiskSpaceWarning(p)
1132    }
1133}
1134
1135/// `map` (clientbound play, id 0x34).
1136pub type Map = crate::defs::p775::play::clientbound::Map<777>;
1137impl crate::packet::Packet for Map {
1138    const ID: i32 = id::MAP;
1139    const NAME: &'static str = "map";
1140    const STATE: State = State::Play;
1141    const DIRECTION: Direction = Direction::Clientbound;
1142}
1143impl From<Map> for ClientboundPlayPacket {
1144    fn from(p: Map) -> Self {
1145        Self::Map(p)
1146    }
1147}
1148
1149/// `trade_list` (clientbound play, id 0x35).
1150pub type TradeList = crate::defs::p777::play::clientbound::TradeList<777>;
1151impl crate::packet::Packet for TradeList {
1152    const ID: i32 = id::TRADE_LIST;
1153    const NAME: &'static str = "trade_list";
1154    const STATE: State = State::Play;
1155    const DIRECTION: Direction = Direction::Clientbound;
1156}
1157impl From<TradeList> for ClientboundPlayPacket {
1158    fn from(p: TradeList) -> Self {
1159        Self::TradeList(p)
1160    }
1161}
1162
1163/// `rel_entity_move` (clientbound play, id 0x36).
1164pub type RelEntityMove = crate::defs::p777::play::clientbound::RelEntityMove<777>;
1165impl crate::packet::Packet for RelEntityMove {
1166    const ID: i32 = id::REL_ENTITY_MOVE;
1167    const NAME: &'static str = "rel_entity_move";
1168    const STATE: State = State::Play;
1169    const DIRECTION: Direction = Direction::Clientbound;
1170}
1171impl From<RelEntityMove> for ClientboundPlayPacket {
1172    fn from(p: RelEntityMove) -> Self {
1173        Self::RelEntityMove(p)
1174    }
1175}
1176
1177/// `entity_move_look` (clientbound play, id 0x37).
1178pub type EntityMoveLook = crate::defs::p777::play::clientbound::EntityMoveLook<777>;
1179impl crate::packet::Packet for EntityMoveLook {
1180    const ID: i32 = id::ENTITY_MOVE_LOOK;
1181    const NAME: &'static str = "entity_move_look";
1182    const STATE: State = State::Play;
1183    const DIRECTION: Direction = Direction::Clientbound;
1184}
1185impl From<EntityMoveLook> for ClientboundPlayPacket {
1186    fn from(p: EntityMoveLook) -> Self {
1187        Self::EntityMoveLook(p)
1188    }
1189}
1190
1191/// `move_minecart` (clientbound play, id 0x38).
1192pub type MoveMinecart = crate::defs::p775::play::clientbound::MoveMinecart<777>;
1193impl crate::packet::Packet for MoveMinecart {
1194    const ID: i32 = id::MOVE_MINECART;
1195    const NAME: &'static str = "move_minecart";
1196    const STATE: State = State::Play;
1197    const DIRECTION: Direction = Direction::Clientbound;
1198}
1199impl From<MoveMinecart> for ClientboundPlayPacket {
1200    fn from(p: MoveMinecart) -> Self {
1201        Self::MoveMinecart(p)
1202    }
1203}
1204
1205/// `entity_look` (clientbound play, id 0x39).
1206pub type EntityLook = crate::defs::p777::play::clientbound::EntityLook<777>;
1207impl crate::packet::Packet for EntityLook {
1208    const ID: i32 = id::ENTITY_LOOK;
1209    const NAME: &'static str = "entity_look";
1210    const STATE: State = State::Play;
1211    const DIRECTION: Direction = Direction::Clientbound;
1212}
1213impl From<EntityLook> for ClientboundPlayPacket {
1214    fn from(p: EntityLook) -> Self {
1215        Self::EntityLook(p)
1216    }
1217}
1218
1219/// `vehicle_move` (clientbound play, id 0x3a).
1220pub type VehicleMove = crate::defs::p340::play::clientbound::VehicleMove<777>;
1221impl crate::packet::Packet for VehicleMove {
1222    const ID: i32 = id::VEHICLE_MOVE;
1223    const NAME: &'static str = "vehicle_move";
1224    const STATE: State = State::Play;
1225    const DIRECTION: Direction = Direction::Clientbound;
1226}
1227impl From<VehicleMove> for ClientboundPlayPacket {
1228    fn from(p: VehicleMove) -> Self {
1229        Self::VehicleMove(p)
1230    }
1231}
1232
1233/// `open_book` (clientbound play, id 0x3b).
1234pub type OpenBook = crate::defs::p775::play::clientbound::OpenBook<777>;
1235impl crate::packet::Packet for OpenBook {
1236    const ID: i32 = id::OPEN_BOOK;
1237    const NAME: &'static str = "open_book";
1238    const STATE: State = State::Play;
1239    const DIRECTION: Direction = Direction::Clientbound;
1240}
1241impl From<OpenBook> for ClientboundPlayPacket {
1242    fn from(p: OpenBook) -> Self {
1243        Self::OpenBook(p)
1244    }
1245}
1246
1247/// `open_window` (clientbound play, id 0x3c).
1248pub type OpenWindow = crate::defs::p775::play::clientbound::OpenWindow<777>;
1249impl crate::packet::Packet for OpenWindow {
1250    const ID: i32 = id::OPEN_WINDOW;
1251    const NAME: &'static str = "open_window";
1252    const STATE: State = State::Play;
1253    const DIRECTION: Direction = Direction::Clientbound;
1254}
1255impl From<OpenWindow> for ClientboundPlayPacket {
1256    fn from(p: OpenWindow) -> Self {
1257        Self::OpenWindow(p)
1258    }
1259}
1260
1261/// `open_sign_entity` (clientbound play, id 0x3d).
1262pub type OpenSignEntity = crate::defs::p777::play::clientbound::OpenSignEntity<777>;
1263impl crate::packet::Packet for OpenSignEntity {
1264    const ID: i32 = id::OPEN_SIGN_ENTITY;
1265    const NAME: &'static str = "open_sign_entity";
1266    const STATE: State = State::Play;
1267    const DIRECTION: Direction = Direction::Clientbound;
1268}
1269impl From<OpenSignEntity> for ClientboundPlayPacket {
1270    fn from(p: OpenSignEntity) -> Self {
1271        Self::OpenSignEntity(p)
1272    }
1273}
1274
1275/// `ping` (clientbound play, id 0x3e).
1276pub type Ping = crate::defs::p775::play::clientbound::Ping<777>;
1277impl crate::packet::Packet for Ping {
1278    const ID: i32 = id::PING;
1279    const NAME: &'static str = "ping";
1280    const STATE: State = State::Play;
1281    const DIRECTION: Direction = Direction::Clientbound;
1282}
1283impl From<Ping> for ClientboundPlayPacket {
1284    fn from(p: Ping) -> Self {
1285        Self::Ping(p)
1286    }
1287}
1288
1289/// `ping_response` (clientbound play, id 0x3f).
1290pub type PingResponse = crate::defs::p775::play::clientbound::PingResponse<777>;
1291impl crate::packet::Packet for PingResponse {
1292    const ID: i32 = id::PING_RESPONSE;
1293    const NAME: &'static str = "ping_response";
1294    const STATE: State = State::Play;
1295    const DIRECTION: Direction = Direction::Clientbound;
1296}
1297impl From<PingResponse> for ClientboundPlayPacket {
1298    fn from(p: PingResponse) -> Self {
1299        Self::PingResponse(p)
1300    }
1301}
1302
1303/// `craft_recipe_response` (clientbound play, id 0x40).
1304pub type CraftRecipeResponse = crate::defs::p777::play::clientbound::CraftRecipeResponse<777>;
1305impl crate::packet::Packet for CraftRecipeResponse {
1306    const ID: i32 = id::CRAFT_RECIPE_RESPONSE;
1307    const NAME: &'static str = "craft_recipe_response";
1308    const STATE: State = State::Play;
1309    const DIRECTION: Direction = Direction::Clientbound;
1310}
1311impl From<CraftRecipeResponse> for ClientboundPlayPacket {
1312    fn from(p: CraftRecipeResponse) -> Self {
1313        Self::CraftRecipeResponse(p)
1314    }
1315}
1316
1317/// `abilities` (clientbound play, id 0x41).
1318pub type Abilities = crate::defs::p47::play::clientbound::Abilities<777>;
1319impl crate::packet::Packet for Abilities {
1320    const ID: i32 = id::ABILITIES;
1321    const NAME: &'static str = "abilities";
1322    const STATE: State = State::Play;
1323    const DIRECTION: Direction = Direction::Clientbound;
1324}
1325impl From<Abilities> for ClientboundPlayPacket {
1326    fn from(p: Abilities) -> Self {
1327        Self::Abilities(p)
1328    }
1329}
1330
1331/// `player_chat` (clientbound play, id 0x42).
1332pub type PlayerChat = crate::defs::p777::play::clientbound::PlayerChat<777>;
1333impl crate::packet::Packet for PlayerChat {
1334    const ID: i32 = id::PLAYER_CHAT;
1335    const NAME: &'static str = "player_chat";
1336    const STATE: State = State::Play;
1337    const DIRECTION: Direction = Direction::Clientbound;
1338}
1339impl From<PlayerChat> for ClientboundPlayPacket {
1340    fn from(p: PlayerChat) -> Self {
1341        Self::PlayerChat(p)
1342    }
1343}
1344
1345/// `end_combat_event` (clientbound play, id 0x43).
1346pub type EndCombatEvent = crate::defs::p775::play::clientbound::EndCombatEvent<777>;
1347impl crate::packet::Packet for EndCombatEvent {
1348    const ID: i32 = id::END_COMBAT_EVENT;
1349    const NAME: &'static str = "end_combat_event";
1350    const STATE: State = State::Play;
1351    const DIRECTION: Direction = Direction::Clientbound;
1352}
1353impl From<EndCombatEvent> for ClientboundPlayPacket {
1354    fn from(p: EndCombatEvent) -> Self {
1355        Self::EndCombatEvent(p)
1356    }
1357}
1358
1359/// `enter_combat_event` (clientbound play, id 0x44).
1360pub type EnterCombatEvent = crate::defs::p775::play::clientbound::EnterCombatEvent<777>;
1361impl crate::packet::Packet for EnterCombatEvent {
1362    const ID: i32 = id::ENTER_COMBAT_EVENT;
1363    const NAME: &'static str = "enter_combat_event";
1364    const STATE: State = State::Play;
1365    const DIRECTION: Direction = Direction::Clientbound;
1366}
1367impl From<EnterCombatEvent> for ClientboundPlayPacket {
1368    fn from(p: EnterCombatEvent) -> Self {
1369        Self::EnterCombatEvent(p)
1370    }
1371}
1372
1373/// `death_combat_event` (clientbound play, id 0x45).
1374pub type DeathCombatEvent = crate::defs::p775::play::clientbound::DeathCombatEvent<777>;
1375impl crate::packet::Packet for DeathCombatEvent {
1376    const ID: i32 = id::DEATH_COMBAT_EVENT;
1377    const NAME: &'static str = "death_combat_event";
1378    const STATE: State = State::Play;
1379    const DIRECTION: Direction = Direction::Clientbound;
1380}
1381impl From<DeathCombatEvent> for ClientboundPlayPacket {
1382    fn from(p: DeathCombatEvent) -> Self {
1383        Self::DeathCombatEvent(p)
1384    }
1385}
1386
1387/// `player_remove` (clientbound play, id 0x46).
1388pub type PlayerRemove = crate::defs::p775::play::clientbound::PlayerRemove<777>;
1389impl crate::packet::Packet for PlayerRemove {
1390    const ID: i32 = id::PLAYER_REMOVE;
1391    const NAME: &'static str = "player_remove";
1392    const STATE: State = State::Play;
1393    const DIRECTION: Direction = Direction::Clientbound;
1394}
1395impl From<PlayerRemove> for ClientboundPlayPacket {
1396    fn from(p: PlayerRemove) -> Self {
1397        Self::PlayerRemove(p)
1398    }
1399}
1400
1401/// `player_info` (clientbound play, id 0x47).
1402pub type PlayerInfo = crate::defs::p775::play::clientbound::PlayerInfo<777>;
1403impl crate::packet::Packet for PlayerInfo {
1404    const ID: i32 = id::PLAYER_INFO;
1405    const NAME: &'static str = "player_info";
1406    const STATE: State = State::Play;
1407    const DIRECTION: Direction = Direction::Clientbound;
1408}
1409impl From<PlayerInfo> for ClientboundPlayPacket {
1410    fn from(p: PlayerInfo) -> Self {
1411        Self::PlayerInfo(p)
1412    }
1413}
1414
1415/// `face_player` (clientbound play, id 0x48).
1416pub type FacePlayer = crate::defs::p775::play::clientbound::FacePlayer<777>;
1417impl crate::packet::Packet for FacePlayer {
1418    const ID: i32 = id::FACE_PLAYER;
1419    const NAME: &'static str = "face_player";
1420    const STATE: State = State::Play;
1421    const DIRECTION: Direction = Direction::Clientbound;
1422}
1423impl From<FacePlayer> for ClientboundPlayPacket {
1424    fn from(p: FacePlayer) -> Self {
1425        Self::FacePlayer(p)
1426    }
1427}
1428
1429/// `position` (clientbound play, id 0x49).
1430pub type Position = crate::defs::p775::play::clientbound::Position<777>;
1431impl crate::packet::Packet for Position {
1432    const ID: i32 = id::POSITION;
1433    const NAME: &'static str = "position";
1434    const STATE: State = State::Play;
1435    const DIRECTION: Direction = Direction::Clientbound;
1436}
1437impl From<Position> for ClientboundPlayPacket {
1438    fn from(p: Position) -> Self {
1439        Self::Position(p)
1440    }
1441}
1442
1443/// `player_rotation` (clientbound play, id 0x4a).
1444pub type PlayerRotation = crate::defs::p775::play::clientbound::PlayerRotation<777>;
1445impl crate::packet::Packet for PlayerRotation {
1446    const ID: i32 = id::PLAYER_ROTATION;
1447    const NAME: &'static str = "player_rotation";
1448    const STATE: State = State::Play;
1449    const DIRECTION: Direction = Direction::Clientbound;
1450}
1451impl From<PlayerRotation> for ClientboundPlayPacket {
1452    fn from(p: PlayerRotation) -> Self {
1453        Self::PlayerRotation(p)
1454    }
1455}
1456
1457/// `recipe_book_add` (clientbound play, id 0x4b).
1458pub type RecipeBookAdd = crate::defs::p777::play::clientbound::RecipeBookAdd<777>;
1459impl crate::packet::Packet for RecipeBookAdd {
1460    const ID: i32 = id::RECIPE_BOOK_ADD;
1461    const NAME: &'static str = "recipe_book_add";
1462    const STATE: State = State::Play;
1463    const DIRECTION: Direction = Direction::Clientbound;
1464}
1465impl From<RecipeBookAdd> for ClientboundPlayPacket {
1466    fn from(p: RecipeBookAdd) -> Self {
1467        Self::RecipeBookAdd(p)
1468    }
1469}
1470
1471/// `recipe_book_remove` (clientbound play, id 0x4c).
1472pub type RecipeBookRemove = crate::defs::p775::play::clientbound::RecipeBookRemove<777>;
1473impl crate::packet::Packet for RecipeBookRemove {
1474    const ID: i32 = id::RECIPE_BOOK_REMOVE;
1475    const NAME: &'static str = "recipe_book_remove";
1476    const STATE: State = State::Play;
1477    const DIRECTION: Direction = Direction::Clientbound;
1478}
1479impl From<RecipeBookRemove> for ClientboundPlayPacket {
1480    fn from(p: RecipeBookRemove) -> Self {
1481        Self::RecipeBookRemove(p)
1482    }
1483}
1484
1485/// `recipe_book_settings` (clientbound play, id 0x4d).
1486pub type RecipeBookSettings = crate::defs::p775::play::clientbound::RecipeBookSettings<777>;
1487impl crate::packet::Packet for RecipeBookSettings {
1488    const ID: i32 = id::RECIPE_BOOK_SETTINGS;
1489    const NAME: &'static str = "recipe_book_settings";
1490    const STATE: State = State::Play;
1491    const DIRECTION: Direction = Direction::Clientbound;
1492}
1493impl From<RecipeBookSettings> for ClientboundPlayPacket {
1494    fn from(p: RecipeBookSettings) -> Self {
1495        Self::RecipeBookSettings(p)
1496    }
1497}
1498
1499/// `entity_destroy` (clientbound play, id 0x4e).
1500pub type EntityDestroy = crate::defs::p47::play::clientbound::EntityDestroy<777>;
1501impl crate::packet::Packet for EntityDestroy {
1502    const ID: i32 = id::ENTITY_DESTROY;
1503    const NAME: &'static str = "entity_destroy";
1504    const STATE: State = State::Play;
1505    const DIRECTION: Direction = Direction::Clientbound;
1506}
1507impl From<EntityDestroy> for ClientboundPlayPacket {
1508    fn from(p: EntityDestroy) -> Self {
1509        Self::EntityDestroy(p)
1510    }
1511}
1512
1513/// `remove_entity_effect` (clientbound play, id 0x4f).
1514pub type RemoveEntityEffect = crate::defs::p775::play::clientbound::RemoveEntityEffect<777>;
1515impl crate::packet::Packet for RemoveEntityEffect {
1516    const ID: i32 = id::REMOVE_ENTITY_EFFECT;
1517    const NAME: &'static str = "remove_entity_effect";
1518    const STATE: State = State::Play;
1519    const DIRECTION: Direction = Direction::Clientbound;
1520}
1521impl From<RemoveEntityEffect> for ClientboundPlayPacket {
1522    fn from(p: RemoveEntityEffect) -> Self {
1523        Self::RemoveEntityEffect(p)
1524    }
1525}
1526
1527/// `reset_score` (clientbound play, id 0x50).
1528pub type ResetScore = crate::defs::p775::play::clientbound::ResetScore<777>;
1529impl crate::packet::Packet for ResetScore {
1530    const ID: i32 = id::RESET_SCORE;
1531    const NAME: &'static str = "reset_score";
1532    const STATE: State = State::Play;
1533    const DIRECTION: Direction = Direction::Clientbound;
1534}
1535impl From<ResetScore> for ClientboundPlayPacket {
1536    fn from(p: ResetScore) -> Self {
1537        Self::ResetScore(p)
1538    }
1539}
1540
1541/// `remove_resource_pack` (clientbound play, id 0x51).
1542pub type RemoveResourcePack = crate::defs::p775::play::clientbound::RemoveResourcePack<777>;
1543impl crate::packet::Packet for RemoveResourcePack {
1544    const ID: i32 = id::REMOVE_RESOURCE_PACK;
1545    const NAME: &'static str = "remove_resource_pack";
1546    const STATE: State = State::Play;
1547    const DIRECTION: Direction = Direction::Clientbound;
1548}
1549impl From<RemoveResourcePack> for ClientboundPlayPacket {
1550    fn from(p: RemoveResourcePack) -> Self {
1551        Self::RemoveResourcePack(p)
1552    }
1553}
1554
1555/// `add_resource_pack` (clientbound play, id 0x52).
1556pub type AddResourcePack = crate::defs::p775::play::clientbound::AddResourcePack<777>;
1557impl crate::packet::Packet for AddResourcePack {
1558    const ID: i32 = id::ADD_RESOURCE_PACK;
1559    const NAME: &'static str = "add_resource_pack";
1560    const STATE: State = State::Play;
1561    const DIRECTION: Direction = Direction::Clientbound;
1562}
1563impl From<AddResourcePack> for ClientboundPlayPacket {
1564    fn from(p: AddResourcePack) -> Self {
1565        Self::AddResourcePack(p)
1566    }
1567}
1568
1569/// `post_effects` (clientbound play, id 0x53).
1570pub type PostEffects = crate::defs::p777::play::clientbound::PostEffects<777>;
1571impl crate::packet::Packet for PostEffects {
1572    const ID: i32 = id::POST_EFFECTS;
1573    const NAME: &'static str = "post_effects";
1574    const STATE: State = State::Play;
1575    const DIRECTION: Direction = Direction::Clientbound;
1576}
1577impl From<PostEffects> for ClientboundPlayPacket {
1578    fn from(p: PostEffects) -> Self {
1579        Self::PostEffects(p)
1580    }
1581}
1582
1583/// `respawn` (clientbound play, id 0x54).
1584pub type Respawn = crate::defs::p777::play::clientbound::Respawn<777>;
1585impl crate::packet::Packet for Respawn {
1586    const ID: i32 = id::RESPAWN;
1587    const NAME: &'static str = "respawn";
1588    const STATE: State = State::Play;
1589    const DIRECTION: Direction = Direction::Clientbound;
1590}
1591impl From<Respawn> for ClientboundPlayPacket {
1592    fn from(p: Respawn) -> Self {
1593        Self::Respawn(p)
1594    }
1595}
1596
1597/// `entity_head_rotation` (clientbound play, id 0x55).
1598pub type EntityHeadRotation = crate::defs::p47::play::clientbound::EntityHeadRotation<777>;
1599impl crate::packet::Packet for EntityHeadRotation {
1600    const ID: i32 = id::ENTITY_HEAD_ROTATION;
1601    const NAME: &'static str = "entity_head_rotation";
1602    const STATE: State = State::Play;
1603    const DIRECTION: Direction = Direction::Clientbound;
1604}
1605impl From<EntityHeadRotation> for ClientboundPlayPacket {
1606    fn from(p: EntityHeadRotation) -> Self {
1607        Self::EntityHeadRotation(p)
1608    }
1609}
1610
1611/// `multi_block_change` (clientbound play, id 0x56).
1612pub type MultiBlockChange = crate::defs::p775::play::clientbound::MultiBlockChange<777>;
1613impl crate::packet::Packet for MultiBlockChange {
1614    const ID: i32 = id::MULTI_BLOCK_CHANGE;
1615    const NAME: &'static str = "multi_block_change";
1616    const STATE: State = State::Play;
1617    const DIRECTION: Direction = Direction::Clientbound;
1618}
1619impl From<MultiBlockChange> for ClientboundPlayPacket {
1620    fn from(p: MultiBlockChange) -> Self {
1621        Self::MultiBlockChange(p)
1622    }
1623}
1624
1625/// `select_advancement_tab` (clientbound play, id 0x57).
1626pub type SelectAdvancementTab = crate::defs::p340::play::clientbound::SelectAdvancementTab<777>;
1627impl crate::packet::Packet for SelectAdvancementTab {
1628    const ID: i32 = id::SELECT_ADVANCEMENT_TAB;
1629    const NAME: &'static str = "select_advancement_tab";
1630    const STATE: State = State::Play;
1631    const DIRECTION: Direction = Direction::Clientbound;
1632}
1633impl From<SelectAdvancementTab> for ClientboundPlayPacket {
1634    fn from(p: SelectAdvancementTab) -> Self {
1635        Self::SelectAdvancementTab(p)
1636    }
1637}
1638
1639/// `server_data` (clientbound play, id 0x58).
1640pub type ServerData = crate::defs::p775::play::clientbound::ServerData<777>;
1641impl crate::packet::Packet for ServerData {
1642    const ID: i32 = id::SERVER_DATA;
1643    const NAME: &'static str = "server_data";
1644    const STATE: State = State::Play;
1645    const DIRECTION: Direction = Direction::Clientbound;
1646}
1647impl From<ServerData> for ClientboundPlayPacket {
1648    fn from(p: ServerData) -> Self {
1649        Self::ServerData(p)
1650    }
1651}
1652
1653/// `action_bar` (clientbound play, id 0x59).
1654pub type ActionBar = crate::defs::p775::play::clientbound::ActionBar<777>;
1655impl crate::packet::Packet for ActionBar {
1656    const ID: i32 = id::ACTION_BAR;
1657    const NAME: &'static str = "action_bar";
1658    const STATE: State = State::Play;
1659    const DIRECTION: Direction = Direction::Clientbound;
1660}
1661impl From<ActionBar> for ClientboundPlayPacket {
1662    fn from(p: ActionBar) -> Self {
1663        Self::ActionBar(p)
1664    }
1665}
1666
1667/// `world_border_center` (clientbound play, id 0x5a).
1668pub type WorldBorderCenter = crate::defs::p775::play::clientbound::WorldBorderCenter<777>;
1669impl crate::packet::Packet for WorldBorderCenter {
1670    const ID: i32 = id::WORLD_BORDER_CENTER;
1671    const NAME: &'static str = "world_border_center";
1672    const STATE: State = State::Play;
1673    const DIRECTION: Direction = Direction::Clientbound;
1674}
1675impl From<WorldBorderCenter> for ClientboundPlayPacket {
1676    fn from(p: WorldBorderCenter) -> Self {
1677        Self::WorldBorderCenter(p)
1678    }
1679}
1680
1681/// `world_border_lerp_size` (clientbound play, id 0x5b).
1682pub type WorldBorderLerpSize = crate::defs::p775::play::clientbound::WorldBorderLerpSize<777>;
1683impl crate::packet::Packet for WorldBorderLerpSize {
1684    const ID: i32 = id::WORLD_BORDER_LERP_SIZE;
1685    const NAME: &'static str = "world_border_lerp_size";
1686    const STATE: State = State::Play;
1687    const DIRECTION: Direction = Direction::Clientbound;
1688}
1689impl From<WorldBorderLerpSize> for ClientboundPlayPacket {
1690    fn from(p: WorldBorderLerpSize) -> Self {
1691        Self::WorldBorderLerpSize(p)
1692    }
1693}
1694
1695/// `world_border_size` (clientbound play, id 0x5c).
1696pub type WorldBorderSize = crate::defs::p775::play::clientbound::WorldBorderSize<777>;
1697impl crate::packet::Packet for WorldBorderSize {
1698    const ID: i32 = id::WORLD_BORDER_SIZE;
1699    const NAME: &'static str = "world_border_size";
1700    const STATE: State = State::Play;
1701    const DIRECTION: Direction = Direction::Clientbound;
1702}
1703impl From<WorldBorderSize> for ClientboundPlayPacket {
1704    fn from(p: WorldBorderSize) -> Self {
1705        Self::WorldBorderSize(p)
1706    }
1707}
1708
1709/// `world_border_warning_delay` (clientbound play, id 0x5d).
1710pub type WorldBorderWarningDelay =
1711    crate::defs::p775::play::clientbound::WorldBorderWarningDelay<777>;
1712impl crate::packet::Packet for WorldBorderWarningDelay {
1713    const ID: i32 = id::WORLD_BORDER_WARNING_DELAY;
1714    const NAME: &'static str = "world_border_warning_delay";
1715    const STATE: State = State::Play;
1716    const DIRECTION: Direction = Direction::Clientbound;
1717}
1718impl From<WorldBorderWarningDelay> for ClientboundPlayPacket {
1719    fn from(p: WorldBorderWarningDelay) -> Self {
1720        Self::WorldBorderWarningDelay(p)
1721    }
1722}
1723
1724/// `world_border_warning_reach` (clientbound play, id 0x5e).
1725pub type WorldBorderWarningReach =
1726    crate::defs::p775::play::clientbound::WorldBorderWarningReach<777>;
1727impl crate::packet::Packet for WorldBorderWarningReach {
1728    const ID: i32 = id::WORLD_BORDER_WARNING_REACH;
1729    const NAME: &'static str = "world_border_warning_reach";
1730    const STATE: State = State::Play;
1731    const DIRECTION: Direction = Direction::Clientbound;
1732}
1733impl From<WorldBorderWarningReach> for ClientboundPlayPacket {
1734    fn from(p: WorldBorderWarningReach) -> Self {
1735        Self::WorldBorderWarningReach(p)
1736    }
1737}
1738
1739/// `camera` (clientbound play, id 0x5f).
1740pub type Camera = crate::defs::p47::play::clientbound::Camera<777>;
1741impl crate::packet::Packet for Camera {
1742    const ID: i32 = id::CAMERA;
1743    const NAME: &'static str = "camera";
1744    const STATE: State = State::Play;
1745    const DIRECTION: Direction = Direction::Clientbound;
1746}
1747impl From<Camera> for ClientboundPlayPacket {
1748    fn from(p: Camera) -> Self {
1749        Self::Camera(p)
1750    }
1751}
1752
1753/// `update_view_position` (clientbound play, id 0x60).
1754pub type UpdateViewPosition = crate::defs::p754::play::clientbound::UpdateViewPosition<777>;
1755impl crate::packet::Packet for UpdateViewPosition {
1756    const ID: i32 = id::UPDATE_VIEW_POSITION;
1757    const NAME: &'static str = "update_view_position";
1758    const STATE: State = State::Play;
1759    const DIRECTION: Direction = Direction::Clientbound;
1760}
1761impl From<UpdateViewPosition> for ClientboundPlayPacket {
1762    fn from(p: UpdateViewPosition) -> Self {
1763        Self::UpdateViewPosition(p)
1764    }
1765}
1766
1767/// `update_view_distance` (clientbound play, id 0x61).
1768pub type UpdateViewDistance = crate::defs::p754::play::clientbound::UpdateViewDistance<777>;
1769impl crate::packet::Packet for UpdateViewDistance {
1770    const ID: i32 = id::UPDATE_VIEW_DISTANCE;
1771    const NAME: &'static str = "update_view_distance";
1772    const STATE: State = State::Play;
1773    const DIRECTION: Direction = Direction::Clientbound;
1774}
1775impl From<UpdateViewDistance> for ClientboundPlayPacket {
1776    fn from(p: UpdateViewDistance) -> Self {
1777        Self::UpdateViewDistance(p)
1778    }
1779}
1780
1781/// `set_cursor_item` (clientbound play, id 0x62).
1782pub type SetCursorItem = crate::defs::p777::play::clientbound::SetCursorItem<777>;
1783impl crate::packet::Packet for SetCursorItem {
1784    const ID: i32 = id::SET_CURSOR_ITEM;
1785    const NAME: &'static str = "set_cursor_item";
1786    const STATE: State = State::Play;
1787    const DIRECTION: Direction = Direction::Clientbound;
1788}
1789impl From<SetCursorItem> for ClientboundPlayPacket {
1790    fn from(p: SetCursorItem) -> Self {
1791        Self::SetCursorItem(p)
1792    }
1793}
1794
1795/// `spawn_position` (clientbound play, id 0x63).
1796pub type SpawnPosition = crate::defs::p775::play::clientbound::SpawnPosition<777>;
1797impl crate::packet::Packet for SpawnPosition {
1798    const ID: i32 = id::SPAWN_POSITION;
1799    const NAME: &'static str = "spawn_position";
1800    const STATE: State = State::Play;
1801    const DIRECTION: Direction = Direction::Clientbound;
1802}
1803impl From<SpawnPosition> for ClientboundPlayPacket {
1804    fn from(p: SpawnPosition) -> Self {
1805        Self::SpawnPosition(p)
1806    }
1807}
1808
1809/// `scoreboard_display_objective` (clientbound play, id 0x64).
1810pub type ScoreboardDisplayObjective =
1811    crate::defs::p775::play::clientbound::ScoreboardDisplayObjective<777>;
1812impl crate::packet::Packet for ScoreboardDisplayObjective {
1813    const ID: i32 = id::SCOREBOARD_DISPLAY_OBJECTIVE;
1814    const NAME: &'static str = "scoreboard_display_objective";
1815    const STATE: State = State::Play;
1816    const DIRECTION: Direction = Direction::Clientbound;
1817}
1818impl From<ScoreboardDisplayObjective> for ClientboundPlayPacket {
1819    fn from(p: ScoreboardDisplayObjective) -> Self {
1820        Self::ScoreboardDisplayObjective(p)
1821    }
1822}
1823
1824/// `entity_metadata` (clientbound play, id 0x65).
1825pub type EntityMetadata = crate::defs::p777::play::clientbound::EntityMetadata<777>;
1826impl crate::packet::Packet for EntityMetadata {
1827    const ID: i32 = id::ENTITY_METADATA;
1828    const NAME: &'static str = "entity_metadata";
1829    const STATE: State = State::Play;
1830    const DIRECTION: Direction = Direction::Clientbound;
1831}
1832impl From<EntityMetadata> for ClientboundPlayPacket {
1833    fn from(p: EntityMetadata) -> Self {
1834        Self::EntityMetadata(p)
1835    }
1836}
1837
1838/// `attach_entity` (clientbound play, id 0x66).
1839pub type AttachEntity = crate::defs::p340::play::clientbound::AttachEntity<777>;
1840impl crate::packet::Packet for AttachEntity {
1841    const ID: i32 = id::ATTACH_ENTITY;
1842    const NAME: &'static str = "attach_entity";
1843    const STATE: State = State::Play;
1844    const DIRECTION: Direction = Direction::Clientbound;
1845}
1846impl From<AttachEntity> for ClientboundPlayPacket {
1847    fn from(p: AttachEntity) -> Self {
1848        Self::AttachEntity(p)
1849    }
1850}
1851
1852/// `entity_velocity` (clientbound play, id 0x67).
1853pub type EntityVelocity = crate::defs::p775::play::clientbound::EntityVelocity<777>;
1854impl crate::packet::Packet for EntityVelocity {
1855    const ID: i32 = id::ENTITY_VELOCITY;
1856    const NAME: &'static str = "entity_velocity";
1857    const STATE: State = State::Play;
1858    const DIRECTION: Direction = Direction::Clientbound;
1859}
1860impl From<EntityVelocity> for ClientboundPlayPacket {
1861    fn from(p: EntityVelocity) -> Self {
1862        Self::EntityVelocity(p)
1863    }
1864}
1865
1866/// `entity_equipment` (clientbound play, id 0x68).
1867pub type EntityEquipment = crate::defs::p777::play::clientbound::EntityEquipment<777>;
1868impl crate::packet::Packet for EntityEquipment {
1869    const ID: i32 = id::ENTITY_EQUIPMENT;
1870    const NAME: &'static str = "entity_equipment";
1871    const STATE: State = State::Play;
1872    const DIRECTION: Direction = Direction::Clientbound;
1873}
1874impl From<EntityEquipment> for ClientboundPlayPacket {
1875    fn from(p: EntityEquipment) -> Self {
1876        Self::EntityEquipment(p)
1877    }
1878}
1879
1880/// `experience` (clientbound play, id 0x69).
1881pub type Experience = crate::defs::p47::play::clientbound::Experience<777>;
1882impl crate::packet::Packet for Experience {
1883    const ID: i32 = id::EXPERIENCE;
1884    const NAME: &'static str = "experience";
1885    const STATE: State = State::Play;
1886    const DIRECTION: Direction = Direction::Clientbound;
1887}
1888impl From<Experience> for ClientboundPlayPacket {
1889    fn from(p: Experience) -> Self {
1890        Self::Experience(p)
1891    }
1892}
1893
1894/// `update_health` (clientbound play, id 0x6a).
1895pub type UpdateHealth = crate::defs::p47::play::clientbound::UpdateHealth<777>;
1896impl crate::packet::Packet for UpdateHealth {
1897    const ID: i32 = id::UPDATE_HEALTH;
1898    const NAME: &'static str = "update_health";
1899    const STATE: State = State::Play;
1900    const DIRECTION: Direction = Direction::Clientbound;
1901}
1902impl From<UpdateHealth> for ClientboundPlayPacket {
1903    fn from(p: UpdateHealth) -> Self {
1904        Self::UpdateHealth(p)
1905    }
1906}
1907
1908/// `held_item_slot` (clientbound play, id 0x6b).
1909pub type HeldItemSlot = crate::defs::p775::play::clientbound::HeldItemSlot<777>;
1910impl crate::packet::Packet for HeldItemSlot {
1911    const ID: i32 = id::HELD_ITEM_SLOT;
1912    const NAME: &'static str = "held_item_slot";
1913    const STATE: State = State::Play;
1914    const DIRECTION: Direction = Direction::Clientbound;
1915}
1916impl From<HeldItemSlot> for ClientboundPlayPacket {
1917    fn from(p: HeldItemSlot) -> Self {
1918        Self::HeldItemSlot(p)
1919    }
1920}
1921
1922/// `scoreboard_objective` (clientbound play, id 0x6c).
1923pub type ScoreboardObjective = crate::defs::p775::play::clientbound::ScoreboardObjective<777>;
1924impl crate::packet::Packet for ScoreboardObjective {
1925    const ID: i32 = id::SCOREBOARD_OBJECTIVE;
1926    const NAME: &'static str = "scoreboard_objective";
1927    const STATE: State = State::Play;
1928    const DIRECTION: Direction = Direction::Clientbound;
1929}
1930impl From<ScoreboardObjective> for ClientboundPlayPacket {
1931    fn from(p: ScoreboardObjective) -> Self {
1932        Self::ScoreboardObjective(p)
1933    }
1934}
1935
1936/// `set_passengers` (clientbound play, id 0x6d).
1937pub type SetPassengers = crate::defs::p340::play::clientbound::SetPassengers<777>;
1938impl crate::packet::Packet for SetPassengers {
1939    const ID: i32 = id::SET_PASSENGERS;
1940    const NAME: &'static str = "set_passengers";
1941    const STATE: State = State::Play;
1942    const DIRECTION: Direction = Direction::Clientbound;
1943}
1944impl From<SetPassengers> for ClientboundPlayPacket {
1945    fn from(p: SetPassengers) -> Self {
1946        Self::SetPassengers(p)
1947    }
1948}
1949
1950/// `set_player_inventory` (clientbound play, id 0x6e).
1951pub type SetPlayerInventory = crate::defs::p777::play::clientbound::SetPlayerInventory<777>;
1952impl crate::packet::Packet for SetPlayerInventory {
1953    const ID: i32 = id::SET_PLAYER_INVENTORY;
1954    const NAME: &'static str = "set_player_inventory";
1955    const STATE: State = State::Play;
1956    const DIRECTION: Direction = Direction::Clientbound;
1957}
1958impl From<SetPlayerInventory> for ClientboundPlayPacket {
1959    fn from(p: SetPlayerInventory) -> Self {
1960        Self::SetPlayerInventory(p)
1961    }
1962}
1963
1964/// `teams` (clientbound play, id 0x6f).
1965pub type Teams = crate::defs::p776::play::clientbound::Teams<777>;
1966impl crate::packet::Packet for Teams {
1967    const ID: i32 = id::TEAMS;
1968    const NAME: &'static str = "teams";
1969    const STATE: State = State::Play;
1970    const DIRECTION: Direction = Direction::Clientbound;
1971}
1972impl From<Teams> for ClientboundPlayPacket {
1973    fn from(p: Teams) -> Self {
1974        Self::Teams(p)
1975    }
1976}
1977
1978/// `scoreboard_score` (clientbound play, id 0x70).
1979pub type ScoreboardScore = crate::defs::p775::play::clientbound::ScoreboardScore<777>;
1980impl crate::packet::Packet for ScoreboardScore {
1981    const ID: i32 = id::SCOREBOARD_SCORE;
1982    const NAME: &'static str = "scoreboard_score";
1983    const STATE: State = State::Play;
1984    const DIRECTION: Direction = Direction::Clientbound;
1985}
1986impl From<ScoreboardScore> for ClientboundPlayPacket {
1987    fn from(p: ScoreboardScore) -> Self {
1988        Self::ScoreboardScore(p)
1989    }
1990}
1991
1992/// `simulation_distance` (clientbound play, id 0x71).
1993pub type SimulationDistance = crate::defs::p775::play::clientbound::SimulationDistance<777>;
1994impl crate::packet::Packet for SimulationDistance {
1995    const ID: i32 = id::SIMULATION_DISTANCE;
1996    const NAME: &'static str = "simulation_distance";
1997    const STATE: State = State::Play;
1998    const DIRECTION: Direction = Direction::Clientbound;
1999}
2000impl From<SimulationDistance> for ClientboundPlayPacket {
2001    fn from(p: SimulationDistance) -> Self {
2002        Self::SimulationDistance(p)
2003    }
2004}
2005
2006/// `set_title_subtitle` (clientbound play, id 0x72).
2007pub type SetTitleSubtitle = crate::defs::p775::play::clientbound::SetTitleSubtitle<777>;
2008impl crate::packet::Packet for SetTitleSubtitle {
2009    const ID: i32 = id::SET_TITLE_SUBTITLE;
2010    const NAME: &'static str = "set_title_subtitle";
2011    const STATE: State = State::Play;
2012    const DIRECTION: Direction = Direction::Clientbound;
2013}
2014impl From<SetTitleSubtitle> for ClientboundPlayPacket {
2015    fn from(p: SetTitleSubtitle) -> Self {
2016        Self::SetTitleSubtitle(p)
2017    }
2018}
2019
2020/// `update_time` (clientbound play, id 0x73).
2021pub type UpdateTime = crate::defs::p775::play::clientbound::UpdateTime<777>;
2022impl crate::packet::Packet for UpdateTime {
2023    const ID: i32 = id::UPDATE_TIME;
2024    const NAME: &'static str = "update_time";
2025    const STATE: State = State::Play;
2026    const DIRECTION: Direction = Direction::Clientbound;
2027}
2028impl From<UpdateTime> for ClientboundPlayPacket {
2029    fn from(p: UpdateTime) -> Self {
2030        Self::UpdateTime(p)
2031    }
2032}
2033
2034/// `set_title_text` (clientbound play, id 0x74).
2035pub type SetTitleText = crate::defs::p775::play::clientbound::SetTitleText<777>;
2036impl crate::packet::Packet for SetTitleText {
2037    const ID: i32 = id::SET_TITLE_TEXT;
2038    const NAME: &'static str = "set_title_text";
2039    const STATE: State = State::Play;
2040    const DIRECTION: Direction = Direction::Clientbound;
2041}
2042impl From<SetTitleText> for ClientboundPlayPacket {
2043    fn from(p: SetTitleText) -> Self {
2044        Self::SetTitleText(p)
2045    }
2046}
2047
2048/// `set_title_time` (clientbound play, id 0x75).
2049pub type SetTitleTime = crate::defs::p775::play::clientbound::SetTitleTime<777>;
2050impl crate::packet::Packet for SetTitleTime {
2051    const ID: i32 = id::SET_TITLE_TIME;
2052    const NAME: &'static str = "set_title_time";
2053    const STATE: State = State::Play;
2054    const DIRECTION: Direction = Direction::Clientbound;
2055}
2056impl From<SetTitleTime> for ClientboundPlayPacket {
2057    fn from(p: SetTitleTime) -> Self {
2058        Self::SetTitleTime(p)
2059    }
2060}
2061
2062/// `entity_sound_effect` (clientbound play, id 0x76).
2063pub type EntitySoundEffect = crate::defs::p775::play::clientbound::EntitySoundEffect<777>;
2064impl crate::packet::Packet for EntitySoundEffect {
2065    const ID: i32 = id::ENTITY_SOUND_EFFECT;
2066    const NAME: &'static str = "entity_sound_effect";
2067    const STATE: State = State::Play;
2068    const DIRECTION: Direction = Direction::Clientbound;
2069}
2070impl From<EntitySoundEffect> for ClientboundPlayPacket {
2071    fn from(p: EntitySoundEffect) -> Self {
2072        Self::EntitySoundEffect(p)
2073    }
2074}
2075
2076/// `sound_effect` (clientbound play, id 0x77).
2077pub type SoundEffect = crate::defs::p775::play::clientbound::SoundEffect<777>;
2078impl crate::packet::Packet for SoundEffect {
2079    const ID: i32 = id::SOUND_EFFECT;
2080    const NAME: &'static str = "sound_effect";
2081    const STATE: State = State::Play;
2082    const DIRECTION: Direction = Direction::Clientbound;
2083}
2084impl From<SoundEffect> for ClientboundPlayPacket {
2085    fn from(p: SoundEffect) -> Self {
2086        Self::SoundEffect(p)
2087    }
2088}
2089
2090/// `start_configuration` (clientbound play, id 0x78).
2091pub type StartConfiguration = crate::defs::p775::play::clientbound::StartConfiguration<777>;
2092impl crate::packet::Packet for StartConfiguration {
2093    const ID: i32 = id::START_CONFIGURATION;
2094    const NAME: &'static str = "start_configuration";
2095    const STATE: State = State::Play;
2096    const DIRECTION: Direction = Direction::Clientbound;
2097}
2098impl From<StartConfiguration> for ClientboundPlayPacket {
2099    fn from(p: StartConfiguration) -> Self {
2100        Self::StartConfiguration(p)
2101    }
2102}
2103
2104/// `stop_sound` (clientbound play, id 0x79).
2105pub type StopSound = crate::defs::p754::play::clientbound::StopSound<777>;
2106impl crate::packet::Packet for StopSound {
2107    const ID: i32 = id::STOP_SOUND;
2108    const NAME: &'static str = "stop_sound";
2109    const STATE: State = State::Play;
2110    const DIRECTION: Direction = Direction::Clientbound;
2111}
2112impl From<StopSound> for ClientboundPlayPacket {
2113    fn from(p: StopSound) -> Self {
2114        Self::StopSound(p)
2115    }
2116}
2117
2118/// `store_cookie` (clientbound play, id 0x7a).
2119pub type StoreCookie = crate::defs::p775::play::clientbound::StoreCookie<777>;
2120impl crate::packet::Packet for StoreCookie {
2121    const ID: i32 = id::STORE_COOKIE;
2122    const NAME: &'static str = "store_cookie";
2123    const STATE: State = State::Play;
2124    const DIRECTION: Direction = Direction::Clientbound;
2125}
2126impl From<StoreCookie> for ClientboundPlayPacket {
2127    fn from(p: StoreCookie) -> Self {
2128        Self::StoreCookie(p)
2129    }
2130}
2131
2132/// `swing_animation` (clientbound play, id 0x7b).
2133pub type SwingAnimation = crate::defs::p777::play::clientbound::SwingAnimation<777>;
2134impl crate::packet::Packet for SwingAnimation {
2135    const ID: i32 = id::SWING_ANIMATION;
2136    const NAME: &'static str = "swing_animation";
2137    const STATE: State = State::Play;
2138    const DIRECTION: Direction = Direction::Clientbound;
2139}
2140impl From<SwingAnimation> for ClientboundPlayPacket {
2141    fn from(p: SwingAnimation) -> Self {
2142        Self::SwingAnimation(p)
2143    }
2144}
2145
2146/// `system_chat` (clientbound play, id 0x7c).
2147pub type SystemChat = crate::defs::p775::play::clientbound::SystemChat<777>;
2148impl crate::packet::Packet for SystemChat {
2149    const ID: i32 = id::SYSTEM_CHAT;
2150    const NAME: &'static str = "system_chat";
2151    const STATE: State = State::Play;
2152    const DIRECTION: Direction = Direction::Clientbound;
2153}
2154impl From<SystemChat> for ClientboundPlayPacket {
2155    fn from(p: SystemChat) -> Self {
2156        Self::SystemChat(p)
2157    }
2158}
2159
2160/// `playerlist_header` (clientbound play, id 0x7d).
2161pub type PlayerlistHeader = crate::defs::p775::play::clientbound::PlayerlistHeader<777>;
2162impl crate::packet::Packet for PlayerlistHeader {
2163    const ID: i32 = id::PLAYERLIST_HEADER;
2164    const NAME: &'static str = "playerlist_header";
2165    const STATE: State = State::Play;
2166    const DIRECTION: Direction = Direction::Clientbound;
2167}
2168impl From<PlayerlistHeader> for ClientboundPlayPacket {
2169    fn from(p: PlayerlistHeader) -> Self {
2170        Self::PlayerlistHeader(p)
2171    }
2172}
2173
2174/// `nbt_query_response` (clientbound play, id 0x7e).
2175pub type NbtQueryResponse = crate::defs::p775::play::clientbound::NbtQueryResponse<777>;
2176impl crate::packet::Packet for NbtQueryResponse {
2177    const ID: i32 = id::NBT_QUERY_RESPONSE;
2178    const NAME: &'static str = "nbt_query_response";
2179    const STATE: State = State::Play;
2180    const DIRECTION: Direction = Direction::Clientbound;
2181}
2182impl From<NbtQueryResponse> for ClientboundPlayPacket {
2183    fn from(p: NbtQueryResponse) -> Self {
2184        Self::NbtQueryResponse(p)
2185    }
2186}
2187
2188/// `collect` (clientbound play, id 0x7f).
2189pub type Collect = crate::defs::p340::play::clientbound::Collect<777>;
2190impl crate::packet::Packet for Collect {
2191    const ID: i32 = id::COLLECT;
2192    const NAME: &'static str = "collect";
2193    const STATE: State = State::Play;
2194    const DIRECTION: Direction = Direction::Clientbound;
2195}
2196impl From<Collect> for ClientboundPlayPacket {
2197    fn from(p: Collect) -> Self {
2198        Self::Collect(p)
2199    }
2200}
2201
2202/// `entity_teleport` (clientbound play, id 0x80).
2203pub type EntityTeleport = crate::defs::p775::play::clientbound::EntityTeleport<777>;
2204impl crate::packet::Packet for EntityTeleport {
2205    const ID: i32 = id::ENTITY_TELEPORT;
2206    const NAME: &'static str = "entity_teleport";
2207    const STATE: State = State::Play;
2208    const DIRECTION: Direction = Direction::Clientbound;
2209}
2210impl From<EntityTeleport> for ClientboundPlayPacket {
2211    fn from(p: EntityTeleport) -> Self {
2212        Self::EntityTeleport(p)
2213    }
2214}
2215
2216/// `test_instance_block_status` (clientbound play, id 0x81).
2217pub type TestInstanceBlockStatus =
2218    crate::defs::p775::play::clientbound::TestInstanceBlockStatus<777>;
2219impl crate::packet::Packet for TestInstanceBlockStatus {
2220    const ID: i32 = id::TEST_INSTANCE_BLOCK_STATUS;
2221    const NAME: &'static str = "test_instance_block_status";
2222    const STATE: State = State::Play;
2223    const DIRECTION: Direction = Direction::Clientbound;
2224}
2225impl From<TestInstanceBlockStatus> for ClientboundPlayPacket {
2226    fn from(p: TestInstanceBlockStatus) -> Self {
2227        Self::TestInstanceBlockStatus(p)
2228    }
2229}
2230
2231/// `set_ticking_state` (clientbound play, id 0x82).
2232pub type SetTickingState = crate::defs::p775::play::clientbound::SetTickingState<777>;
2233impl crate::packet::Packet for SetTickingState {
2234    const ID: i32 = id::SET_TICKING_STATE;
2235    const NAME: &'static str = "set_ticking_state";
2236    const STATE: State = State::Play;
2237    const DIRECTION: Direction = Direction::Clientbound;
2238}
2239impl From<SetTickingState> for ClientboundPlayPacket {
2240    fn from(p: SetTickingState) -> Self {
2241        Self::SetTickingState(p)
2242    }
2243}
2244
2245/// `step_tick` (clientbound play, id 0x83).
2246pub type StepTick = crate::defs::p775::play::clientbound::StepTick<777>;
2247impl crate::packet::Packet for StepTick {
2248    const ID: i32 = id::STEP_TICK;
2249    const NAME: &'static str = "step_tick";
2250    const STATE: State = State::Play;
2251    const DIRECTION: Direction = Direction::Clientbound;
2252}
2253impl From<StepTick> for ClientboundPlayPacket {
2254    fn from(p: StepTick) -> Self {
2255        Self::StepTick(p)
2256    }
2257}
2258
2259/// `transfer` (clientbound play, id 0x84).
2260pub type Transfer = crate::defs::p775::play::clientbound::Transfer<777>;
2261impl crate::packet::Packet for Transfer {
2262    const ID: i32 = id::TRANSFER;
2263    const NAME: &'static str = "transfer";
2264    const STATE: State = State::Play;
2265    const DIRECTION: Direction = Direction::Clientbound;
2266}
2267impl From<Transfer> for ClientboundPlayPacket {
2268    fn from(p: Transfer) -> Self {
2269        Self::Transfer(p)
2270    }
2271}
2272
2273/// `advancements` (clientbound play, id 0x85).
2274pub type Advancements = crate::defs::p777::play::clientbound::Advancements<777>;
2275impl crate::packet::Packet for Advancements {
2276    const ID: i32 = id::ADVANCEMENTS;
2277    const NAME: &'static str = "advancements";
2278    const STATE: State = State::Play;
2279    const DIRECTION: Direction = Direction::Clientbound;
2280}
2281impl From<Advancements> for ClientboundPlayPacket {
2282    fn from(p: Advancements) -> Self {
2283        Self::Advancements(p)
2284    }
2285}
2286
2287/// `entity_update_attributes` (clientbound play, id 0x86).
2288pub type EntityUpdateAttributes = crate::defs::p776::play::clientbound::EntityUpdateAttributes<777>;
2289impl crate::packet::Packet for EntityUpdateAttributes {
2290    const ID: i32 = id::ENTITY_UPDATE_ATTRIBUTES;
2291    const NAME: &'static str = "entity_update_attributes";
2292    const STATE: State = State::Play;
2293    const DIRECTION: Direction = Direction::Clientbound;
2294}
2295impl From<EntityUpdateAttributes> for ClientboundPlayPacket {
2296    fn from(p: EntityUpdateAttributes) -> Self {
2297        Self::EntityUpdateAttributes(p)
2298    }
2299}
2300
2301/// `entity_effect` (clientbound play, id 0x87).
2302pub type EntityEffect = crate::defs::p775::play::clientbound::EntityEffect<777>;
2303impl crate::packet::Packet for EntityEffect {
2304    const ID: i32 = id::ENTITY_EFFECT;
2305    const NAME: &'static str = "entity_effect";
2306    const STATE: State = State::Play;
2307    const DIRECTION: Direction = Direction::Clientbound;
2308}
2309impl From<EntityEffect> for ClientboundPlayPacket {
2310    fn from(p: EntityEffect) -> Self {
2311        Self::EntityEffect(p)
2312    }
2313}
2314
2315/// `declare_recipes` (clientbound play, id 0x88).
2316pub type DeclareRecipes = crate::defs::p777::play::clientbound::DeclareRecipes<777>;
2317impl crate::packet::Packet for DeclareRecipes {
2318    const ID: i32 = id::DECLARE_RECIPES;
2319    const NAME: &'static str = "declare_recipes";
2320    const STATE: State = State::Play;
2321    const DIRECTION: Direction = Direction::Clientbound;
2322}
2323impl From<DeclareRecipes> for ClientboundPlayPacket {
2324    fn from(p: DeclareRecipes) -> Self {
2325        Self::DeclareRecipes(p)
2326    }
2327}
2328
2329/// `tags` (clientbound play, id 0x89).
2330pub type Tags = crate::defs::p775::play::clientbound::Tags<777>;
2331impl crate::packet::Packet for Tags {
2332    const ID: i32 = id::TAGS;
2333    const NAME: &'static str = "tags";
2334    const STATE: State = State::Play;
2335    const DIRECTION: Direction = Direction::Clientbound;
2336}
2337impl From<Tags> for ClientboundPlayPacket {
2338    fn from(p: Tags) -> Self {
2339        Self::Tags(p)
2340    }
2341}
2342
2343/// `set_projectile_power` (clientbound play, id 0x8a).
2344pub type SetProjectilePower = crate::defs::p775::play::clientbound::SetProjectilePower<777>;
2345impl crate::packet::Packet for SetProjectilePower {
2346    const ID: i32 = id::SET_PROJECTILE_POWER;
2347    const NAME: &'static str = "set_projectile_power";
2348    const STATE: State = State::Play;
2349    const DIRECTION: Direction = Direction::Clientbound;
2350}
2351impl From<SetProjectilePower> for ClientboundPlayPacket {
2352    fn from(p: SetProjectilePower) -> Self {
2353        Self::SetProjectilePower(p)
2354    }
2355}
2356
2357/// `custom_report_details` (clientbound play, id 0x8b).
2358pub type CustomReportDetails = crate::defs::p775::play::clientbound::CustomReportDetails<777>;
2359impl crate::packet::Packet for CustomReportDetails {
2360    const ID: i32 = id::CUSTOM_REPORT_DETAILS;
2361    const NAME: &'static str = "custom_report_details";
2362    const STATE: State = State::Play;
2363    const DIRECTION: Direction = Direction::Clientbound;
2364}
2365impl From<CustomReportDetails> for ClientboundPlayPacket {
2366    fn from(p: CustomReportDetails) -> Self {
2367        Self::CustomReportDetails(p)
2368    }
2369}
2370
2371/// `server_links` (clientbound play, id 0x8c).
2372pub type ServerLinks = crate::defs::p775::play::clientbound::ServerLinks<777>;
2373impl crate::packet::Packet for ServerLinks {
2374    const ID: i32 = id::SERVER_LINKS;
2375    const NAME: &'static str = "server_links";
2376    const STATE: State = State::Play;
2377    const DIRECTION: Direction = Direction::Clientbound;
2378}
2379impl From<ServerLinks> for ClientboundPlayPacket {
2380    fn from(p: ServerLinks) -> Self {
2381        Self::ServerLinks(p)
2382    }
2383}
2384
2385/// `tracked_waypoint` (clientbound play, id 0x8d).
2386pub type TrackedWaypoint = crate::defs::p775::play::clientbound::TrackedWaypoint<777>;
2387impl crate::packet::Packet for TrackedWaypoint {
2388    const ID: i32 = id::TRACKED_WAYPOINT;
2389    const NAME: &'static str = "tracked_waypoint";
2390    const STATE: State = State::Play;
2391    const DIRECTION: Direction = Direction::Clientbound;
2392}
2393impl From<TrackedWaypoint> for ClientboundPlayPacket {
2394    fn from(p: TrackedWaypoint) -> Self {
2395        Self::TrackedWaypoint(p)
2396    }
2397}
2398
2399/// `clear_dialog` (clientbound play, id 0x8e).
2400pub type ClearDialog = crate::defs::p775::play::clientbound::ClearDialog<777>;
2401impl crate::packet::Packet for ClearDialog {
2402    const ID: i32 = id::CLEAR_DIALOG;
2403    const NAME: &'static str = "clear_dialog";
2404    const STATE: State = State::Play;
2405    const DIRECTION: Direction = Direction::Clientbound;
2406}
2407impl From<ClearDialog> for ClientboundPlayPacket {
2408    fn from(p: ClearDialog) -> Self {
2409        Self::ClearDialog(p)
2410    }
2411}
2412
2413/// `show_dialog` (clientbound play, id 0x8f).
2414pub type ShowDialog = crate::defs::p775::play::clientbound::ShowDialog<777>;
2415impl crate::packet::Packet for ShowDialog {
2416    const ID: i32 = id::SHOW_DIALOG;
2417    const NAME: &'static str = "show_dialog";
2418    const STATE: State = State::Play;
2419    const DIRECTION: Direction = Direction::Clientbound;
2420}
2421impl From<ShowDialog> for ClientboundPlayPacket {
2422    fn from(p: ShowDialog) -> Self {
2423        Self::ShowDialog(p)
2424    }
2425}
2426
2427/// Every Clientbound packet of the Play state.
2428#[derive(Debug, Clone, PartialEq)]
2429pub enum ClientboundPlayPacket {
2430    /// `bundle_delimiter`
2431    BundleDelimiter(BundleDelimiter),
2432    /// `spawn_entity`
2433    SpawnEntity(SpawnEntity),
2434    /// `animation`
2435    Animation(Animation),
2436    /// `statistics`
2437    Statistics(Statistics),
2438    /// `acknowledge_player_digging`
2439    AcknowledgePlayerDigging(AcknowledgePlayerDigging),
2440    /// `block_break_animation`
2441    BlockBreakAnimation(BlockBreakAnimation),
2442    /// `tile_entity_data`
2443    TileEntityData(TileEntityData),
2444    /// `block_action`
2445    BlockAction(BlockAction),
2446    /// `block_change`
2447    BlockChange(BlockChange),
2448    /// `boss_bar`
2449    BossBar(BossBar),
2450    /// `difficulty`
2451    Difficulty(Difficulty),
2452    /// `chunk_batch_finished`
2453    ChunkBatchFinished(ChunkBatchFinished),
2454    /// `chunk_batch_start`
2455    ChunkBatchStart(ChunkBatchStart),
2456    /// `chunk_biomes`
2457    ChunkBiomes(ChunkBiomes),
2458    /// `clear_titles`
2459    ClearTitles(ClearTitles),
2460    /// `tab_complete`
2461    TabComplete(TabComplete),
2462    /// `declare_commands`
2463    DeclareCommands(DeclareCommands),
2464    /// `close_window`
2465    CloseWindow(CloseWindow),
2466    /// `window_items`
2467    WindowItems(WindowItems),
2468    /// `craft_progress_bar`
2469    CraftProgressBar(CraftProgressBar),
2470    /// `set_slot`
2471    SetSlot(SetSlot),
2472    /// `cookie_request`
2473    CookieRequest(CookieRequest),
2474    /// `set_cooldown`
2475    SetCooldown(SetCooldown),
2476    /// `chat_suggestions`
2477    ChatSuggestions(ChatSuggestions),
2478    /// `custom_payload`
2479    CustomPayload(CustomPayload),
2480    /// `damage_event`
2481    DamageEvent(DamageEvent),
2482    /// `debug_block_value`
2483    DebugBlockValue(DebugBlockValue),
2484    /// `debug_chunk_value`
2485    DebugChunkValue(DebugChunkValue),
2486    /// `debug_entity_value`
2487    DebugEntityValue(DebugEntityValue),
2488    /// `debug_event`
2489    DebugEvent(DebugEvent),
2490    /// `debug_sample`
2491    DebugSample(DebugSample),
2492    /// `hide_message`
2493    HideMessage(HideMessage),
2494    /// `kick_disconnect`
2495    KickDisconnect(KickDisconnect),
2496    /// `profileless_chat`
2497    ProfilelessChat(ProfilelessChat),
2498    /// `entity_status`
2499    EntityStatus(EntityStatus),
2500    /// `sync_entity_position`
2501    SyncEntityPosition(SyncEntityPosition),
2502    /// `explosion`
2503    Explosion(Explosion),
2504    /// `add_transient_block`
2505    AddTransientBlock(AddTransientBlock),
2506    /// `unload_chunk`
2507    UnloadChunk(UnloadChunk),
2508    /// `game_state_change`
2509    GameStateChange(GameStateChange),
2510    /// `game_rule_values`
2511    GameRuleValues(GameRuleValues),
2512    /// `game_test_highlight_pos`
2513    GameTestHighlightPos(GameTestHighlightPos),
2514    /// `open_horse_window`
2515    OpenHorseWindow(OpenHorseWindow),
2516    /// `hurt_animation`
2517    HurtAnimation(HurtAnimation),
2518    /// `initialize_world_border`
2519    InitializeWorldBorder(InitializeWorldBorder),
2520    /// `keep_alive`
2521    KeepAlive(KeepAlive),
2522    /// `map_chunk`
2523    MapChunk(MapChunk),
2524    /// `world_event`
2525    WorldEvent(WorldEvent),
2526    /// `world_particles`
2527    WorldParticles(WorldParticles),
2528    /// `update_light`
2529    UpdateLight(UpdateLight),
2530    /// `login`
2531    Login(Login),
2532    /// `low_disk_space_warning`
2533    LowDiskSpaceWarning(LowDiskSpaceWarning),
2534    /// `map`
2535    Map(Map),
2536    /// `trade_list`
2537    TradeList(TradeList),
2538    /// `rel_entity_move`
2539    RelEntityMove(RelEntityMove),
2540    /// `entity_move_look`
2541    EntityMoveLook(EntityMoveLook),
2542    /// `move_minecart`
2543    MoveMinecart(MoveMinecart),
2544    /// `entity_look`
2545    EntityLook(EntityLook),
2546    /// `vehicle_move`
2547    VehicleMove(VehicleMove),
2548    /// `open_book`
2549    OpenBook(OpenBook),
2550    /// `open_window`
2551    OpenWindow(OpenWindow),
2552    /// `open_sign_entity`
2553    OpenSignEntity(OpenSignEntity),
2554    /// `ping`
2555    Ping(Ping),
2556    /// `ping_response`
2557    PingResponse(PingResponse),
2558    /// `craft_recipe_response`
2559    CraftRecipeResponse(CraftRecipeResponse),
2560    /// `abilities`
2561    Abilities(Abilities),
2562    /// `player_chat`
2563    PlayerChat(PlayerChat),
2564    /// `end_combat_event`
2565    EndCombatEvent(EndCombatEvent),
2566    /// `enter_combat_event`
2567    EnterCombatEvent(EnterCombatEvent),
2568    /// `death_combat_event`
2569    DeathCombatEvent(DeathCombatEvent),
2570    /// `player_remove`
2571    PlayerRemove(PlayerRemove),
2572    /// `player_info`
2573    PlayerInfo(PlayerInfo),
2574    /// `face_player`
2575    FacePlayer(FacePlayer),
2576    /// `position`
2577    Position(Position),
2578    /// `player_rotation`
2579    PlayerRotation(PlayerRotation),
2580    /// `recipe_book_add`
2581    RecipeBookAdd(RecipeBookAdd),
2582    /// `recipe_book_remove`
2583    RecipeBookRemove(RecipeBookRemove),
2584    /// `recipe_book_settings`
2585    RecipeBookSettings(RecipeBookSettings),
2586    /// `entity_destroy`
2587    EntityDestroy(EntityDestroy),
2588    /// `remove_entity_effect`
2589    RemoveEntityEffect(RemoveEntityEffect),
2590    /// `reset_score`
2591    ResetScore(ResetScore),
2592    /// `remove_resource_pack`
2593    RemoveResourcePack(RemoveResourcePack),
2594    /// `add_resource_pack`
2595    AddResourcePack(AddResourcePack),
2596    /// `post_effects`
2597    PostEffects(PostEffects),
2598    /// `respawn`
2599    Respawn(Respawn),
2600    /// `entity_head_rotation`
2601    EntityHeadRotation(EntityHeadRotation),
2602    /// `multi_block_change`
2603    MultiBlockChange(MultiBlockChange),
2604    /// `select_advancement_tab`
2605    SelectAdvancementTab(SelectAdvancementTab),
2606    /// `server_data`
2607    ServerData(ServerData),
2608    /// `action_bar`
2609    ActionBar(ActionBar),
2610    /// `world_border_center`
2611    WorldBorderCenter(WorldBorderCenter),
2612    /// `world_border_lerp_size`
2613    WorldBorderLerpSize(WorldBorderLerpSize),
2614    /// `world_border_size`
2615    WorldBorderSize(WorldBorderSize),
2616    /// `world_border_warning_delay`
2617    WorldBorderWarningDelay(WorldBorderWarningDelay),
2618    /// `world_border_warning_reach`
2619    WorldBorderWarningReach(WorldBorderWarningReach),
2620    /// `camera`
2621    Camera(Camera),
2622    /// `update_view_position`
2623    UpdateViewPosition(UpdateViewPosition),
2624    /// `update_view_distance`
2625    UpdateViewDistance(UpdateViewDistance),
2626    /// `set_cursor_item`
2627    SetCursorItem(SetCursorItem),
2628    /// `spawn_position`
2629    SpawnPosition(SpawnPosition),
2630    /// `scoreboard_display_objective`
2631    ScoreboardDisplayObjective(ScoreboardDisplayObjective),
2632    /// `entity_metadata`
2633    EntityMetadata(EntityMetadata),
2634    /// `attach_entity`
2635    AttachEntity(AttachEntity),
2636    /// `entity_velocity`
2637    EntityVelocity(EntityVelocity),
2638    /// `entity_equipment`
2639    EntityEquipment(EntityEquipment),
2640    /// `experience`
2641    Experience(Experience),
2642    /// `update_health`
2643    UpdateHealth(UpdateHealth),
2644    /// `held_item_slot`
2645    HeldItemSlot(HeldItemSlot),
2646    /// `scoreboard_objective`
2647    ScoreboardObjective(ScoreboardObjective),
2648    /// `set_passengers`
2649    SetPassengers(SetPassengers),
2650    /// `set_player_inventory`
2651    SetPlayerInventory(SetPlayerInventory),
2652    /// `teams`
2653    Teams(Teams),
2654    /// `scoreboard_score`
2655    ScoreboardScore(ScoreboardScore),
2656    /// `simulation_distance`
2657    SimulationDistance(SimulationDistance),
2658    /// `set_title_subtitle`
2659    SetTitleSubtitle(SetTitleSubtitle),
2660    /// `update_time`
2661    UpdateTime(UpdateTime),
2662    /// `set_title_text`
2663    SetTitleText(SetTitleText),
2664    /// `set_title_time`
2665    SetTitleTime(SetTitleTime),
2666    /// `entity_sound_effect`
2667    EntitySoundEffect(EntitySoundEffect),
2668    /// `sound_effect`
2669    SoundEffect(SoundEffect),
2670    /// `start_configuration`
2671    StartConfiguration(StartConfiguration),
2672    /// `stop_sound`
2673    StopSound(StopSound),
2674    /// `store_cookie`
2675    StoreCookie(StoreCookie),
2676    /// `swing_animation`
2677    SwingAnimation(SwingAnimation),
2678    /// `system_chat`
2679    SystemChat(SystemChat),
2680    /// `playerlist_header`
2681    PlayerlistHeader(PlayerlistHeader),
2682    /// `nbt_query_response`
2683    NbtQueryResponse(NbtQueryResponse),
2684    /// `collect`
2685    Collect(Collect),
2686    /// `entity_teleport`
2687    EntityTeleport(EntityTeleport),
2688    /// `test_instance_block_status`
2689    TestInstanceBlockStatus(TestInstanceBlockStatus),
2690    /// `set_ticking_state`
2691    SetTickingState(SetTickingState),
2692    /// `step_tick`
2693    StepTick(StepTick),
2694    /// `transfer`
2695    Transfer(Transfer),
2696    /// `advancements`
2697    Advancements(Advancements),
2698    /// `entity_update_attributes`
2699    EntityUpdateAttributes(EntityUpdateAttributes),
2700    /// `entity_effect`
2701    EntityEffect(EntityEffect),
2702    /// `declare_recipes`
2703    DeclareRecipes(DeclareRecipes),
2704    /// `tags`
2705    Tags(Tags),
2706    /// `set_projectile_power`
2707    SetProjectilePower(SetProjectilePower),
2708    /// `custom_report_details`
2709    CustomReportDetails(CustomReportDetails),
2710    /// `server_links`
2711    ServerLinks(ServerLinks),
2712    /// `tracked_waypoint`
2713    TrackedWaypoint(TrackedWaypoint),
2714    /// `clear_dialog`
2715    ClearDialog(ClearDialog),
2716    /// `show_dialog`
2717    ShowDialog(ShowDialog),
2718}
2719
2720impl PacketSet for ClientboundPlayPacket {
2721    const STATE: State = State::Play;
2722    const DIRECTION: Direction = Direction::Clientbound;
2723    fn decode_raw(raw: &RawPacket) -> DecodeResult<Self> {
2724        match raw.id {
2725            id::BUNDLE_DELIMITER => decode_exact(&raw.body).map(Self::BundleDelimiter),
2726            id::SPAWN_ENTITY => decode_exact(&raw.body).map(Self::SpawnEntity),
2727            id::ANIMATION => decode_exact(&raw.body).map(Self::Animation),
2728            id::STATISTICS => decode_exact(&raw.body).map(Self::Statistics),
2729            id::ACKNOWLEDGE_PLAYER_DIGGING => {
2730                decode_exact(&raw.body).map(Self::AcknowledgePlayerDigging)
2731            }
2732            id::BLOCK_BREAK_ANIMATION => decode_exact(&raw.body).map(Self::BlockBreakAnimation),
2733            id::TILE_ENTITY_DATA => decode_exact(&raw.body).map(Self::TileEntityData),
2734            id::BLOCK_ACTION => decode_exact(&raw.body).map(Self::BlockAction),
2735            id::BLOCK_CHANGE => decode_exact(&raw.body).map(Self::BlockChange),
2736            id::BOSS_BAR => decode_exact(&raw.body).map(Self::BossBar),
2737            id::DIFFICULTY => decode_exact(&raw.body).map(Self::Difficulty),
2738            id::CHUNK_BATCH_FINISHED => decode_exact(&raw.body).map(Self::ChunkBatchFinished),
2739            id::CHUNK_BATCH_START => decode_exact(&raw.body).map(Self::ChunkBatchStart),
2740            id::CHUNK_BIOMES => decode_exact(&raw.body).map(Self::ChunkBiomes),
2741            id::CLEAR_TITLES => decode_exact(&raw.body).map(Self::ClearTitles),
2742            id::TAB_COMPLETE => decode_exact(&raw.body).map(Self::TabComplete),
2743            id::DECLARE_COMMANDS => decode_exact(&raw.body).map(Self::DeclareCommands),
2744            id::CLOSE_WINDOW => decode_exact(&raw.body).map(Self::CloseWindow),
2745            id::WINDOW_ITEMS => decode_exact(&raw.body).map(Self::WindowItems),
2746            id::CRAFT_PROGRESS_BAR => decode_exact(&raw.body).map(Self::CraftProgressBar),
2747            id::SET_SLOT => decode_exact(&raw.body).map(Self::SetSlot),
2748            id::COOKIE_REQUEST => decode_exact(&raw.body).map(Self::CookieRequest),
2749            id::SET_COOLDOWN => decode_exact(&raw.body).map(Self::SetCooldown),
2750            id::CHAT_SUGGESTIONS => decode_exact(&raw.body).map(Self::ChatSuggestions),
2751            id::CUSTOM_PAYLOAD => decode_exact(&raw.body).map(Self::CustomPayload),
2752            id::DAMAGE_EVENT => decode_exact(&raw.body).map(Self::DamageEvent),
2753            id::DEBUG_BLOCK_VALUE => decode_exact(&raw.body).map(Self::DebugBlockValue),
2754            id::DEBUG_CHUNK_VALUE => decode_exact(&raw.body).map(Self::DebugChunkValue),
2755            id::DEBUG_ENTITY_VALUE => decode_exact(&raw.body).map(Self::DebugEntityValue),
2756            id::DEBUG_EVENT => decode_exact(&raw.body).map(Self::DebugEvent),
2757            id::DEBUG_SAMPLE => decode_exact(&raw.body).map(Self::DebugSample),
2758            id::HIDE_MESSAGE => decode_exact(&raw.body).map(Self::HideMessage),
2759            id::KICK_DISCONNECT => decode_exact(&raw.body).map(Self::KickDisconnect),
2760            id::PROFILELESS_CHAT => decode_exact(&raw.body).map(Self::ProfilelessChat),
2761            id::ENTITY_STATUS => decode_exact(&raw.body).map(Self::EntityStatus),
2762            id::SYNC_ENTITY_POSITION => decode_exact(&raw.body).map(Self::SyncEntityPosition),
2763            id::EXPLOSION => decode_exact(&raw.body).map(Self::Explosion),
2764            id::ADD_TRANSIENT_BLOCK => decode_exact(&raw.body).map(Self::AddTransientBlock),
2765            id::UNLOAD_CHUNK => decode_exact(&raw.body).map(Self::UnloadChunk),
2766            id::GAME_STATE_CHANGE => decode_exact(&raw.body).map(Self::GameStateChange),
2767            id::GAME_RULE_VALUES => decode_exact(&raw.body).map(Self::GameRuleValues),
2768            id::GAME_TEST_HIGHLIGHT_POS => decode_exact(&raw.body).map(Self::GameTestHighlightPos),
2769            id::OPEN_HORSE_WINDOW => decode_exact(&raw.body).map(Self::OpenHorseWindow),
2770            id::HURT_ANIMATION => decode_exact(&raw.body).map(Self::HurtAnimation),
2771            id::INITIALIZE_WORLD_BORDER => decode_exact(&raw.body).map(Self::InitializeWorldBorder),
2772            id::KEEP_ALIVE => decode_exact(&raw.body).map(Self::KeepAlive),
2773            id::MAP_CHUNK => decode_exact(&raw.body).map(Self::MapChunk),
2774            id::WORLD_EVENT => decode_exact(&raw.body).map(Self::WorldEvent),
2775            id::WORLD_PARTICLES => decode_exact(&raw.body).map(Self::WorldParticles),
2776            id::UPDATE_LIGHT => decode_exact(&raw.body).map(Self::UpdateLight),
2777            id::LOGIN => decode_exact(&raw.body).map(Self::Login),
2778            id::LOW_DISK_SPACE_WARNING => decode_exact(&raw.body).map(Self::LowDiskSpaceWarning),
2779            id::MAP => decode_exact(&raw.body).map(Self::Map),
2780            id::TRADE_LIST => decode_exact(&raw.body).map(Self::TradeList),
2781            id::REL_ENTITY_MOVE => decode_exact(&raw.body).map(Self::RelEntityMove),
2782            id::ENTITY_MOVE_LOOK => decode_exact(&raw.body).map(Self::EntityMoveLook),
2783            id::MOVE_MINECART => decode_exact(&raw.body).map(Self::MoveMinecart),
2784            id::ENTITY_LOOK => decode_exact(&raw.body).map(Self::EntityLook),
2785            id::VEHICLE_MOVE => decode_exact(&raw.body).map(Self::VehicleMove),
2786            id::OPEN_BOOK => decode_exact(&raw.body).map(Self::OpenBook),
2787            id::OPEN_WINDOW => decode_exact(&raw.body).map(Self::OpenWindow),
2788            id::OPEN_SIGN_ENTITY => decode_exact(&raw.body).map(Self::OpenSignEntity),
2789            id::PING => decode_exact(&raw.body).map(Self::Ping),
2790            id::PING_RESPONSE => decode_exact(&raw.body).map(Self::PingResponse),
2791            id::CRAFT_RECIPE_RESPONSE => decode_exact(&raw.body).map(Self::CraftRecipeResponse),
2792            id::ABILITIES => decode_exact(&raw.body).map(Self::Abilities),
2793            id::PLAYER_CHAT => decode_exact(&raw.body).map(Self::PlayerChat),
2794            id::END_COMBAT_EVENT => decode_exact(&raw.body).map(Self::EndCombatEvent),
2795            id::ENTER_COMBAT_EVENT => decode_exact(&raw.body).map(Self::EnterCombatEvent),
2796            id::DEATH_COMBAT_EVENT => decode_exact(&raw.body).map(Self::DeathCombatEvent),
2797            id::PLAYER_REMOVE => decode_exact(&raw.body).map(Self::PlayerRemove),
2798            id::PLAYER_INFO => decode_exact(&raw.body).map(Self::PlayerInfo),
2799            id::FACE_PLAYER => decode_exact(&raw.body).map(Self::FacePlayer),
2800            id::POSITION => decode_exact(&raw.body).map(Self::Position),
2801            id::PLAYER_ROTATION => decode_exact(&raw.body).map(Self::PlayerRotation),
2802            id::RECIPE_BOOK_ADD => decode_exact(&raw.body).map(Self::RecipeBookAdd),
2803            id::RECIPE_BOOK_REMOVE => decode_exact(&raw.body).map(Self::RecipeBookRemove),
2804            id::RECIPE_BOOK_SETTINGS => decode_exact(&raw.body).map(Self::RecipeBookSettings),
2805            id::ENTITY_DESTROY => decode_exact(&raw.body).map(Self::EntityDestroy),
2806            id::REMOVE_ENTITY_EFFECT => decode_exact(&raw.body).map(Self::RemoveEntityEffect),
2807            id::RESET_SCORE => decode_exact(&raw.body).map(Self::ResetScore),
2808            id::REMOVE_RESOURCE_PACK => decode_exact(&raw.body).map(Self::RemoveResourcePack),
2809            id::ADD_RESOURCE_PACK => decode_exact(&raw.body).map(Self::AddResourcePack),
2810            id::POST_EFFECTS => decode_exact(&raw.body).map(Self::PostEffects),
2811            id::RESPAWN => decode_exact(&raw.body).map(Self::Respawn),
2812            id::ENTITY_HEAD_ROTATION => decode_exact(&raw.body).map(Self::EntityHeadRotation),
2813            id::MULTI_BLOCK_CHANGE => decode_exact(&raw.body).map(Self::MultiBlockChange),
2814            id::SELECT_ADVANCEMENT_TAB => decode_exact(&raw.body).map(Self::SelectAdvancementTab),
2815            id::SERVER_DATA => decode_exact(&raw.body).map(Self::ServerData),
2816            id::ACTION_BAR => decode_exact(&raw.body).map(Self::ActionBar),
2817            id::WORLD_BORDER_CENTER => decode_exact(&raw.body).map(Self::WorldBorderCenter),
2818            id::WORLD_BORDER_LERP_SIZE => decode_exact(&raw.body).map(Self::WorldBorderLerpSize),
2819            id::WORLD_BORDER_SIZE => decode_exact(&raw.body).map(Self::WorldBorderSize),
2820            id::WORLD_BORDER_WARNING_DELAY => {
2821                decode_exact(&raw.body).map(Self::WorldBorderWarningDelay)
2822            }
2823            id::WORLD_BORDER_WARNING_REACH => {
2824                decode_exact(&raw.body).map(Self::WorldBorderWarningReach)
2825            }
2826            id::CAMERA => decode_exact(&raw.body).map(Self::Camera),
2827            id::UPDATE_VIEW_POSITION => decode_exact(&raw.body).map(Self::UpdateViewPosition),
2828            id::UPDATE_VIEW_DISTANCE => decode_exact(&raw.body).map(Self::UpdateViewDistance),
2829            id::SET_CURSOR_ITEM => decode_exact(&raw.body).map(Self::SetCursorItem),
2830            id::SPAWN_POSITION => decode_exact(&raw.body).map(Self::SpawnPosition),
2831            id::SCOREBOARD_DISPLAY_OBJECTIVE => {
2832                decode_exact(&raw.body).map(Self::ScoreboardDisplayObjective)
2833            }
2834            id::ENTITY_METADATA => decode_exact(&raw.body).map(Self::EntityMetadata),
2835            id::ATTACH_ENTITY => decode_exact(&raw.body).map(Self::AttachEntity),
2836            id::ENTITY_VELOCITY => decode_exact(&raw.body).map(Self::EntityVelocity),
2837            id::ENTITY_EQUIPMENT => decode_exact(&raw.body).map(Self::EntityEquipment),
2838            id::EXPERIENCE => decode_exact(&raw.body).map(Self::Experience),
2839            id::UPDATE_HEALTH => decode_exact(&raw.body).map(Self::UpdateHealth),
2840            id::HELD_ITEM_SLOT => decode_exact(&raw.body).map(Self::HeldItemSlot),
2841            id::SCOREBOARD_OBJECTIVE => decode_exact(&raw.body).map(Self::ScoreboardObjective),
2842            id::SET_PASSENGERS => decode_exact(&raw.body).map(Self::SetPassengers),
2843            id::SET_PLAYER_INVENTORY => decode_exact(&raw.body).map(Self::SetPlayerInventory),
2844            id::TEAMS => decode_exact(&raw.body).map(Self::Teams),
2845            id::SCOREBOARD_SCORE => decode_exact(&raw.body).map(Self::ScoreboardScore),
2846            id::SIMULATION_DISTANCE => decode_exact(&raw.body).map(Self::SimulationDistance),
2847            id::SET_TITLE_SUBTITLE => decode_exact(&raw.body).map(Self::SetTitleSubtitle),
2848            id::UPDATE_TIME => decode_exact(&raw.body).map(Self::UpdateTime),
2849            id::SET_TITLE_TEXT => decode_exact(&raw.body).map(Self::SetTitleText),
2850            id::SET_TITLE_TIME => decode_exact(&raw.body).map(Self::SetTitleTime),
2851            id::ENTITY_SOUND_EFFECT => decode_exact(&raw.body).map(Self::EntitySoundEffect),
2852            id::SOUND_EFFECT => decode_exact(&raw.body).map(Self::SoundEffect),
2853            id::START_CONFIGURATION => decode_exact(&raw.body).map(Self::StartConfiguration),
2854            id::STOP_SOUND => decode_exact(&raw.body).map(Self::StopSound),
2855            id::STORE_COOKIE => decode_exact(&raw.body).map(Self::StoreCookie),
2856            id::SWING_ANIMATION => decode_exact(&raw.body).map(Self::SwingAnimation),
2857            id::SYSTEM_CHAT => decode_exact(&raw.body).map(Self::SystemChat),
2858            id::PLAYERLIST_HEADER => decode_exact(&raw.body).map(Self::PlayerlistHeader),
2859            id::NBT_QUERY_RESPONSE => decode_exact(&raw.body).map(Self::NbtQueryResponse),
2860            id::COLLECT => decode_exact(&raw.body).map(Self::Collect),
2861            id::ENTITY_TELEPORT => decode_exact(&raw.body).map(Self::EntityTeleport),
2862            id::TEST_INSTANCE_BLOCK_STATUS => {
2863                decode_exact(&raw.body).map(Self::TestInstanceBlockStatus)
2864            }
2865            id::SET_TICKING_STATE => decode_exact(&raw.body).map(Self::SetTickingState),
2866            id::STEP_TICK => decode_exact(&raw.body).map(Self::StepTick),
2867            id::TRANSFER => decode_exact(&raw.body).map(Self::Transfer),
2868            id::ADVANCEMENTS => decode_exact(&raw.body).map(Self::Advancements),
2869            id::ENTITY_UPDATE_ATTRIBUTES => {
2870                decode_exact(&raw.body).map(Self::EntityUpdateAttributes)
2871            }
2872            id::ENTITY_EFFECT => decode_exact(&raw.body).map(Self::EntityEffect),
2873            id::DECLARE_RECIPES => decode_exact(&raw.body).map(Self::DeclareRecipes),
2874            id::TAGS => decode_exact(&raw.body).map(Self::Tags),
2875            id::SET_PROJECTILE_POWER => decode_exact(&raw.body).map(Self::SetProjectilePower),
2876            id::CUSTOM_REPORT_DETAILS => decode_exact(&raw.body).map(Self::CustomReportDetails),
2877            id::SERVER_LINKS => decode_exact(&raw.body).map(Self::ServerLinks),
2878            id::TRACKED_WAYPOINT => decode_exact(&raw.body).map(Self::TrackedWaypoint),
2879            id::CLEAR_DIALOG => decode_exact(&raw.body).map(Self::ClearDialog),
2880            id::SHOW_DIALOG => decode_exact(&raw.body).map(Self::ShowDialog),
2881            other => Err(DecodeError::UnknownPacketId(other)),
2882        }
2883    }
2884    fn id(&self) -> i32 {
2885        match *self {
2886            Self::BundleDelimiter(_) => id::BUNDLE_DELIMITER,
2887            Self::SpawnEntity(_) => id::SPAWN_ENTITY,
2888            Self::Animation(_) => id::ANIMATION,
2889            Self::Statistics(_) => id::STATISTICS,
2890            Self::AcknowledgePlayerDigging(_) => id::ACKNOWLEDGE_PLAYER_DIGGING,
2891            Self::BlockBreakAnimation(_) => id::BLOCK_BREAK_ANIMATION,
2892            Self::TileEntityData(_) => id::TILE_ENTITY_DATA,
2893            Self::BlockAction(_) => id::BLOCK_ACTION,
2894            Self::BlockChange(_) => id::BLOCK_CHANGE,
2895            Self::BossBar(_) => id::BOSS_BAR,
2896            Self::Difficulty(_) => id::DIFFICULTY,
2897            Self::ChunkBatchFinished(_) => id::CHUNK_BATCH_FINISHED,
2898            Self::ChunkBatchStart(_) => id::CHUNK_BATCH_START,
2899            Self::ChunkBiomes(_) => id::CHUNK_BIOMES,
2900            Self::ClearTitles(_) => id::CLEAR_TITLES,
2901            Self::TabComplete(_) => id::TAB_COMPLETE,
2902            Self::DeclareCommands(_) => id::DECLARE_COMMANDS,
2903            Self::CloseWindow(_) => id::CLOSE_WINDOW,
2904            Self::WindowItems(_) => id::WINDOW_ITEMS,
2905            Self::CraftProgressBar(_) => id::CRAFT_PROGRESS_BAR,
2906            Self::SetSlot(_) => id::SET_SLOT,
2907            Self::CookieRequest(_) => id::COOKIE_REQUEST,
2908            Self::SetCooldown(_) => id::SET_COOLDOWN,
2909            Self::ChatSuggestions(_) => id::CHAT_SUGGESTIONS,
2910            Self::CustomPayload(_) => id::CUSTOM_PAYLOAD,
2911            Self::DamageEvent(_) => id::DAMAGE_EVENT,
2912            Self::DebugBlockValue(_) => id::DEBUG_BLOCK_VALUE,
2913            Self::DebugChunkValue(_) => id::DEBUG_CHUNK_VALUE,
2914            Self::DebugEntityValue(_) => id::DEBUG_ENTITY_VALUE,
2915            Self::DebugEvent(_) => id::DEBUG_EVENT,
2916            Self::DebugSample(_) => id::DEBUG_SAMPLE,
2917            Self::HideMessage(_) => id::HIDE_MESSAGE,
2918            Self::KickDisconnect(_) => id::KICK_DISCONNECT,
2919            Self::ProfilelessChat(_) => id::PROFILELESS_CHAT,
2920            Self::EntityStatus(_) => id::ENTITY_STATUS,
2921            Self::SyncEntityPosition(_) => id::SYNC_ENTITY_POSITION,
2922            Self::Explosion(_) => id::EXPLOSION,
2923            Self::AddTransientBlock(_) => id::ADD_TRANSIENT_BLOCK,
2924            Self::UnloadChunk(_) => id::UNLOAD_CHUNK,
2925            Self::GameStateChange(_) => id::GAME_STATE_CHANGE,
2926            Self::GameRuleValues(_) => id::GAME_RULE_VALUES,
2927            Self::GameTestHighlightPos(_) => id::GAME_TEST_HIGHLIGHT_POS,
2928            Self::OpenHorseWindow(_) => id::OPEN_HORSE_WINDOW,
2929            Self::HurtAnimation(_) => id::HURT_ANIMATION,
2930            Self::InitializeWorldBorder(_) => id::INITIALIZE_WORLD_BORDER,
2931            Self::KeepAlive(_) => id::KEEP_ALIVE,
2932            Self::MapChunk(_) => id::MAP_CHUNK,
2933            Self::WorldEvent(_) => id::WORLD_EVENT,
2934            Self::WorldParticles(_) => id::WORLD_PARTICLES,
2935            Self::UpdateLight(_) => id::UPDATE_LIGHT,
2936            Self::Login(_) => id::LOGIN,
2937            Self::LowDiskSpaceWarning(_) => id::LOW_DISK_SPACE_WARNING,
2938            Self::Map(_) => id::MAP,
2939            Self::TradeList(_) => id::TRADE_LIST,
2940            Self::RelEntityMove(_) => id::REL_ENTITY_MOVE,
2941            Self::EntityMoveLook(_) => id::ENTITY_MOVE_LOOK,
2942            Self::MoveMinecart(_) => id::MOVE_MINECART,
2943            Self::EntityLook(_) => id::ENTITY_LOOK,
2944            Self::VehicleMove(_) => id::VEHICLE_MOVE,
2945            Self::OpenBook(_) => id::OPEN_BOOK,
2946            Self::OpenWindow(_) => id::OPEN_WINDOW,
2947            Self::OpenSignEntity(_) => id::OPEN_SIGN_ENTITY,
2948            Self::Ping(_) => id::PING,
2949            Self::PingResponse(_) => id::PING_RESPONSE,
2950            Self::CraftRecipeResponse(_) => id::CRAFT_RECIPE_RESPONSE,
2951            Self::Abilities(_) => id::ABILITIES,
2952            Self::PlayerChat(_) => id::PLAYER_CHAT,
2953            Self::EndCombatEvent(_) => id::END_COMBAT_EVENT,
2954            Self::EnterCombatEvent(_) => id::ENTER_COMBAT_EVENT,
2955            Self::DeathCombatEvent(_) => id::DEATH_COMBAT_EVENT,
2956            Self::PlayerRemove(_) => id::PLAYER_REMOVE,
2957            Self::PlayerInfo(_) => id::PLAYER_INFO,
2958            Self::FacePlayer(_) => id::FACE_PLAYER,
2959            Self::Position(_) => id::POSITION,
2960            Self::PlayerRotation(_) => id::PLAYER_ROTATION,
2961            Self::RecipeBookAdd(_) => id::RECIPE_BOOK_ADD,
2962            Self::RecipeBookRemove(_) => id::RECIPE_BOOK_REMOVE,
2963            Self::RecipeBookSettings(_) => id::RECIPE_BOOK_SETTINGS,
2964            Self::EntityDestroy(_) => id::ENTITY_DESTROY,
2965            Self::RemoveEntityEffect(_) => id::REMOVE_ENTITY_EFFECT,
2966            Self::ResetScore(_) => id::RESET_SCORE,
2967            Self::RemoveResourcePack(_) => id::REMOVE_RESOURCE_PACK,
2968            Self::AddResourcePack(_) => id::ADD_RESOURCE_PACK,
2969            Self::PostEffects(_) => id::POST_EFFECTS,
2970            Self::Respawn(_) => id::RESPAWN,
2971            Self::EntityHeadRotation(_) => id::ENTITY_HEAD_ROTATION,
2972            Self::MultiBlockChange(_) => id::MULTI_BLOCK_CHANGE,
2973            Self::SelectAdvancementTab(_) => id::SELECT_ADVANCEMENT_TAB,
2974            Self::ServerData(_) => id::SERVER_DATA,
2975            Self::ActionBar(_) => id::ACTION_BAR,
2976            Self::WorldBorderCenter(_) => id::WORLD_BORDER_CENTER,
2977            Self::WorldBorderLerpSize(_) => id::WORLD_BORDER_LERP_SIZE,
2978            Self::WorldBorderSize(_) => id::WORLD_BORDER_SIZE,
2979            Self::WorldBorderWarningDelay(_) => id::WORLD_BORDER_WARNING_DELAY,
2980            Self::WorldBorderWarningReach(_) => id::WORLD_BORDER_WARNING_REACH,
2981            Self::Camera(_) => id::CAMERA,
2982            Self::UpdateViewPosition(_) => id::UPDATE_VIEW_POSITION,
2983            Self::UpdateViewDistance(_) => id::UPDATE_VIEW_DISTANCE,
2984            Self::SetCursorItem(_) => id::SET_CURSOR_ITEM,
2985            Self::SpawnPosition(_) => id::SPAWN_POSITION,
2986            Self::ScoreboardDisplayObjective(_) => id::SCOREBOARD_DISPLAY_OBJECTIVE,
2987            Self::EntityMetadata(_) => id::ENTITY_METADATA,
2988            Self::AttachEntity(_) => id::ATTACH_ENTITY,
2989            Self::EntityVelocity(_) => id::ENTITY_VELOCITY,
2990            Self::EntityEquipment(_) => id::ENTITY_EQUIPMENT,
2991            Self::Experience(_) => id::EXPERIENCE,
2992            Self::UpdateHealth(_) => id::UPDATE_HEALTH,
2993            Self::HeldItemSlot(_) => id::HELD_ITEM_SLOT,
2994            Self::ScoreboardObjective(_) => id::SCOREBOARD_OBJECTIVE,
2995            Self::SetPassengers(_) => id::SET_PASSENGERS,
2996            Self::SetPlayerInventory(_) => id::SET_PLAYER_INVENTORY,
2997            Self::Teams(_) => id::TEAMS,
2998            Self::ScoreboardScore(_) => id::SCOREBOARD_SCORE,
2999            Self::SimulationDistance(_) => id::SIMULATION_DISTANCE,
3000            Self::SetTitleSubtitle(_) => id::SET_TITLE_SUBTITLE,
3001            Self::UpdateTime(_) => id::UPDATE_TIME,
3002            Self::SetTitleText(_) => id::SET_TITLE_TEXT,
3003            Self::SetTitleTime(_) => id::SET_TITLE_TIME,
3004            Self::EntitySoundEffect(_) => id::ENTITY_SOUND_EFFECT,
3005            Self::SoundEffect(_) => id::SOUND_EFFECT,
3006            Self::StartConfiguration(_) => id::START_CONFIGURATION,
3007            Self::StopSound(_) => id::STOP_SOUND,
3008            Self::StoreCookie(_) => id::STORE_COOKIE,
3009            Self::SwingAnimation(_) => id::SWING_ANIMATION,
3010            Self::SystemChat(_) => id::SYSTEM_CHAT,
3011            Self::PlayerlistHeader(_) => id::PLAYERLIST_HEADER,
3012            Self::NbtQueryResponse(_) => id::NBT_QUERY_RESPONSE,
3013            Self::Collect(_) => id::COLLECT,
3014            Self::EntityTeleport(_) => id::ENTITY_TELEPORT,
3015            Self::TestInstanceBlockStatus(_) => id::TEST_INSTANCE_BLOCK_STATUS,
3016            Self::SetTickingState(_) => id::SET_TICKING_STATE,
3017            Self::StepTick(_) => id::STEP_TICK,
3018            Self::Transfer(_) => id::TRANSFER,
3019            Self::Advancements(_) => id::ADVANCEMENTS,
3020            Self::EntityUpdateAttributes(_) => id::ENTITY_UPDATE_ATTRIBUTES,
3021            Self::EntityEffect(_) => id::ENTITY_EFFECT,
3022            Self::DeclareRecipes(_) => id::DECLARE_RECIPES,
3023            Self::Tags(_) => id::TAGS,
3024            Self::SetProjectilePower(_) => id::SET_PROJECTILE_POWER,
3025            Self::CustomReportDetails(_) => id::CUSTOM_REPORT_DETAILS,
3026            Self::ServerLinks(_) => id::SERVER_LINKS,
3027            Self::TrackedWaypoint(_) => id::TRACKED_WAYPOINT,
3028            Self::ClearDialog(_) => id::CLEAR_DIALOG,
3029            Self::ShowDialog(_) => id::SHOW_DIALOG,
3030        }
3031    }
3032    fn name(&self) -> &'static str {
3033        match *self {
3034            Self::BundleDelimiter(_) => "bundle_delimiter",
3035            Self::SpawnEntity(_) => "spawn_entity",
3036            Self::Animation(_) => "animation",
3037            Self::Statistics(_) => "statistics",
3038            Self::AcknowledgePlayerDigging(_) => "acknowledge_player_digging",
3039            Self::BlockBreakAnimation(_) => "block_break_animation",
3040            Self::TileEntityData(_) => "tile_entity_data",
3041            Self::BlockAction(_) => "block_action",
3042            Self::BlockChange(_) => "block_change",
3043            Self::BossBar(_) => "boss_bar",
3044            Self::Difficulty(_) => "difficulty",
3045            Self::ChunkBatchFinished(_) => "chunk_batch_finished",
3046            Self::ChunkBatchStart(_) => "chunk_batch_start",
3047            Self::ChunkBiomes(_) => "chunk_biomes",
3048            Self::ClearTitles(_) => "clear_titles",
3049            Self::TabComplete(_) => "tab_complete",
3050            Self::DeclareCommands(_) => "declare_commands",
3051            Self::CloseWindow(_) => "close_window",
3052            Self::WindowItems(_) => "window_items",
3053            Self::CraftProgressBar(_) => "craft_progress_bar",
3054            Self::SetSlot(_) => "set_slot",
3055            Self::CookieRequest(_) => "cookie_request",
3056            Self::SetCooldown(_) => "set_cooldown",
3057            Self::ChatSuggestions(_) => "chat_suggestions",
3058            Self::CustomPayload(_) => "custom_payload",
3059            Self::DamageEvent(_) => "damage_event",
3060            Self::DebugBlockValue(_) => "debug_block_value",
3061            Self::DebugChunkValue(_) => "debug_chunk_value",
3062            Self::DebugEntityValue(_) => "debug_entity_value",
3063            Self::DebugEvent(_) => "debug_event",
3064            Self::DebugSample(_) => "debug_sample",
3065            Self::HideMessage(_) => "hide_message",
3066            Self::KickDisconnect(_) => "kick_disconnect",
3067            Self::ProfilelessChat(_) => "profileless_chat",
3068            Self::EntityStatus(_) => "entity_status",
3069            Self::SyncEntityPosition(_) => "sync_entity_position",
3070            Self::Explosion(_) => "explosion",
3071            Self::AddTransientBlock(_) => "add_transient_block",
3072            Self::UnloadChunk(_) => "unload_chunk",
3073            Self::GameStateChange(_) => "game_state_change",
3074            Self::GameRuleValues(_) => "game_rule_values",
3075            Self::GameTestHighlightPos(_) => "game_test_highlight_pos",
3076            Self::OpenHorseWindow(_) => "open_horse_window",
3077            Self::HurtAnimation(_) => "hurt_animation",
3078            Self::InitializeWorldBorder(_) => "initialize_world_border",
3079            Self::KeepAlive(_) => "keep_alive",
3080            Self::MapChunk(_) => "map_chunk",
3081            Self::WorldEvent(_) => "world_event",
3082            Self::WorldParticles(_) => "world_particles",
3083            Self::UpdateLight(_) => "update_light",
3084            Self::Login(_) => "login",
3085            Self::LowDiskSpaceWarning(_) => "low_disk_space_warning",
3086            Self::Map(_) => "map",
3087            Self::TradeList(_) => "trade_list",
3088            Self::RelEntityMove(_) => "rel_entity_move",
3089            Self::EntityMoveLook(_) => "entity_move_look",
3090            Self::MoveMinecart(_) => "move_minecart",
3091            Self::EntityLook(_) => "entity_look",
3092            Self::VehicleMove(_) => "vehicle_move",
3093            Self::OpenBook(_) => "open_book",
3094            Self::OpenWindow(_) => "open_window",
3095            Self::OpenSignEntity(_) => "open_sign_entity",
3096            Self::Ping(_) => "ping",
3097            Self::PingResponse(_) => "ping_response",
3098            Self::CraftRecipeResponse(_) => "craft_recipe_response",
3099            Self::Abilities(_) => "abilities",
3100            Self::PlayerChat(_) => "player_chat",
3101            Self::EndCombatEvent(_) => "end_combat_event",
3102            Self::EnterCombatEvent(_) => "enter_combat_event",
3103            Self::DeathCombatEvent(_) => "death_combat_event",
3104            Self::PlayerRemove(_) => "player_remove",
3105            Self::PlayerInfo(_) => "player_info",
3106            Self::FacePlayer(_) => "face_player",
3107            Self::Position(_) => "position",
3108            Self::PlayerRotation(_) => "player_rotation",
3109            Self::RecipeBookAdd(_) => "recipe_book_add",
3110            Self::RecipeBookRemove(_) => "recipe_book_remove",
3111            Self::RecipeBookSettings(_) => "recipe_book_settings",
3112            Self::EntityDestroy(_) => "entity_destroy",
3113            Self::RemoveEntityEffect(_) => "remove_entity_effect",
3114            Self::ResetScore(_) => "reset_score",
3115            Self::RemoveResourcePack(_) => "remove_resource_pack",
3116            Self::AddResourcePack(_) => "add_resource_pack",
3117            Self::PostEffects(_) => "post_effects",
3118            Self::Respawn(_) => "respawn",
3119            Self::EntityHeadRotation(_) => "entity_head_rotation",
3120            Self::MultiBlockChange(_) => "multi_block_change",
3121            Self::SelectAdvancementTab(_) => "select_advancement_tab",
3122            Self::ServerData(_) => "server_data",
3123            Self::ActionBar(_) => "action_bar",
3124            Self::WorldBorderCenter(_) => "world_border_center",
3125            Self::WorldBorderLerpSize(_) => "world_border_lerp_size",
3126            Self::WorldBorderSize(_) => "world_border_size",
3127            Self::WorldBorderWarningDelay(_) => "world_border_warning_delay",
3128            Self::WorldBorderWarningReach(_) => "world_border_warning_reach",
3129            Self::Camera(_) => "camera",
3130            Self::UpdateViewPosition(_) => "update_view_position",
3131            Self::UpdateViewDistance(_) => "update_view_distance",
3132            Self::SetCursorItem(_) => "set_cursor_item",
3133            Self::SpawnPosition(_) => "spawn_position",
3134            Self::ScoreboardDisplayObjective(_) => "scoreboard_display_objective",
3135            Self::EntityMetadata(_) => "entity_metadata",
3136            Self::AttachEntity(_) => "attach_entity",
3137            Self::EntityVelocity(_) => "entity_velocity",
3138            Self::EntityEquipment(_) => "entity_equipment",
3139            Self::Experience(_) => "experience",
3140            Self::UpdateHealth(_) => "update_health",
3141            Self::HeldItemSlot(_) => "held_item_slot",
3142            Self::ScoreboardObjective(_) => "scoreboard_objective",
3143            Self::SetPassengers(_) => "set_passengers",
3144            Self::SetPlayerInventory(_) => "set_player_inventory",
3145            Self::Teams(_) => "teams",
3146            Self::ScoreboardScore(_) => "scoreboard_score",
3147            Self::SimulationDistance(_) => "simulation_distance",
3148            Self::SetTitleSubtitle(_) => "set_title_subtitle",
3149            Self::UpdateTime(_) => "update_time",
3150            Self::SetTitleText(_) => "set_title_text",
3151            Self::SetTitleTime(_) => "set_title_time",
3152            Self::EntitySoundEffect(_) => "entity_sound_effect",
3153            Self::SoundEffect(_) => "sound_effect",
3154            Self::StartConfiguration(_) => "start_configuration",
3155            Self::StopSound(_) => "stop_sound",
3156            Self::StoreCookie(_) => "store_cookie",
3157            Self::SwingAnimation(_) => "swing_animation",
3158            Self::SystemChat(_) => "system_chat",
3159            Self::PlayerlistHeader(_) => "playerlist_header",
3160            Self::NbtQueryResponse(_) => "nbt_query_response",
3161            Self::Collect(_) => "collect",
3162            Self::EntityTeleport(_) => "entity_teleport",
3163            Self::TestInstanceBlockStatus(_) => "test_instance_block_status",
3164            Self::SetTickingState(_) => "set_ticking_state",
3165            Self::StepTick(_) => "step_tick",
3166            Self::Transfer(_) => "transfer",
3167            Self::Advancements(_) => "advancements",
3168            Self::EntityUpdateAttributes(_) => "entity_update_attributes",
3169            Self::EntityEffect(_) => "entity_effect",
3170            Self::DeclareRecipes(_) => "declare_recipes",
3171            Self::Tags(_) => "tags",
3172            Self::SetProjectilePower(_) => "set_projectile_power",
3173            Self::CustomReportDetails(_) => "custom_report_details",
3174            Self::ServerLinks(_) => "server_links",
3175            Self::TrackedWaypoint(_) => "tracked_waypoint",
3176            Self::ClearDialog(_) => "clear_dialog",
3177            Self::ShowDialog(_) => "show_dialog",
3178        }
3179    }
3180    fn encode_body(&self, w: &mut BytesMut) -> EncodeResult {
3181        match *self {
3182            Self::BundleDelimiter(ref p) => p.encode(w),
3183            Self::SpawnEntity(ref p) => p.encode(w),
3184            Self::Animation(ref p) => p.encode(w),
3185            Self::Statistics(ref p) => p.encode(w),
3186            Self::AcknowledgePlayerDigging(ref p) => p.encode(w),
3187            Self::BlockBreakAnimation(ref p) => p.encode(w),
3188            Self::TileEntityData(ref p) => p.encode(w),
3189            Self::BlockAction(ref p) => p.encode(w),
3190            Self::BlockChange(ref p) => p.encode(w),
3191            Self::BossBar(ref p) => p.encode(w),
3192            Self::Difficulty(ref p) => p.encode(w),
3193            Self::ChunkBatchFinished(ref p) => p.encode(w),
3194            Self::ChunkBatchStart(ref p) => p.encode(w),
3195            Self::ChunkBiomes(ref p) => p.encode(w),
3196            Self::ClearTitles(ref p) => p.encode(w),
3197            Self::TabComplete(ref p) => p.encode(w),
3198            Self::DeclareCommands(ref p) => p.encode(w),
3199            Self::CloseWindow(ref p) => p.encode(w),
3200            Self::WindowItems(ref p) => p.encode(w),
3201            Self::CraftProgressBar(ref p) => p.encode(w),
3202            Self::SetSlot(ref p) => p.encode(w),
3203            Self::CookieRequest(ref p) => p.encode(w),
3204            Self::SetCooldown(ref p) => p.encode(w),
3205            Self::ChatSuggestions(ref p) => p.encode(w),
3206            Self::CustomPayload(ref p) => p.encode(w),
3207            Self::DamageEvent(ref p) => p.encode(w),
3208            Self::DebugBlockValue(ref p) => p.encode(w),
3209            Self::DebugChunkValue(ref p) => p.encode(w),
3210            Self::DebugEntityValue(ref p) => p.encode(w),
3211            Self::DebugEvent(ref p) => p.encode(w),
3212            Self::DebugSample(ref p) => p.encode(w),
3213            Self::HideMessage(ref p) => p.encode(w),
3214            Self::KickDisconnect(ref p) => p.encode(w),
3215            Self::ProfilelessChat(ref p) => p.encode(w),
3216            Self::EntityStatus(ref p) => p.encode(w),
3217            Self::SyncEntityPosition(ref p) => p.encode(w),
3218            Self::Explosion(ref p) => p.encode(w),
3219            Self::AddTransientBlock(ref p) => p.encode(w),
3220            Self::UnloadChunk(ref p) => p.encode(w),
3221            Self::GameStateChange(ref p) => p.encode(w),
3222            Self::GameRuleValues(ref p) => p.encode(w),
3223            Self::GameTestHighlightPos(ref p) => p.encode(w),
3224            Self::OpenHorseWindow(ref p) => p.encode(w),
3225            Self::HurtAnimation(ref p) => p.encode(w),
3226            Self::InitializeWorldBorder(ref p) => p.encode(w),
3227            Self::KeepAlive(ref p) => p.encode(w),
3228            Self::MapChunk(ref p) => p.encode(w),
3229            Self::WorldEvent(ref p) => p.encode(w),
3230            Self::WorldParticles(ref p) => p.encode(w),
3231            Self::UpdateLight(ref p) => p.encode(w),
3232            Self::Login(ref p) => p.encode(w),
3233            Self::LowDiskSpaceWarning(ref p) => p.encode(w),
3234            Self::Map(ref p) => p.encode(w),
3235            Self::TradeList(ref p) => p.encode(w),
3236            Self::RelEntityMove(ref p) => p.encode(w),
3237            Self::EntityMoveLook(ref p) => p.encode(w),
3238            Self::MoveMinecart(ref p) => p.encode(w),
3239            Self::EntityLook(ref p) => p.encode(w),
3240            Self::VehicleMove(ref p) => p.encode(w),
3241            Self::OpenBook(ref p) => p.encode(w),
3242            Self::OpenWindow(ref p) => p.encode(w),
3243            Self::OpenSignEntity(ref p) => p.encode(w),
3244            Self::Ping(ref p) => p.encode(w),
3245            Self::PingResponse(ref p) => p.encode(w),
3246            Self::CraftRecipeResponse(ref p) => p.encode(w),
3247            Self::Abilities(ref p) => p.encode(w),
3248            Self::PlayerChat(ref p) => p.encode(w),
3249            Self::EndCombatEvent(ref p) => p.encode(w),
3250            Self::EnterCombatEvent(ref p) => p.encode(w),
3251            Self::DeathCombatEvent(ref p) => p.encode(w),
3252            Self::PlayerRemove(ref p) => p.encode(w),
3253            Self::PlayerInfo(ref p) => p.encode(w),
3254            Self::FacePlayer(ref p) => p.encode(w),
3255            Self::Position(ref p) => p.encode(w),
3256            Self::PlayerRotation(ref p) => p.encode(w),
3257            Self::RecipeBookAdd(ref p) => p.encode(w),
3258            Self::RecipeBookRemove(ref p) => p.encode(w),
3259            Self::RecipeBookSettings(ref p) => p.encode(w),
3260            Self::EntityDestroy(ref p) => p.encode(w),
3261            Self::RemoveEntityEffect(ref p) => p.encode(w),
3262            Self::ResetScore(ref p) => p.encode(w),
3263            Self::RemoveResourcePack(ref p) => p.encode(w),
3264            Self::AddResourcePack(ref p) => p.encode(w),
3265            Self::PostEffects(ref p) => p.encode(w),
3266            Self::Respawn(ref p) => p.encode(w),
3267            Self::EntityHeadRotation(ref p) => p.encode(w),
3268            Self::MultiBlockChange(ref p) => p.encode(w),
3269            Self::SelectAdvancementTab(ref p) => p.encode(w),
3270            Self::ServerData(ref p) => p.encode(w),
3271            Self::ActionBar(ref p) => p.encode(w),
3272            Self::WorldBorderCenter(ref p) => p.encode(w),
3273            Self::WorldBorderLerpSize(ref p) => p.encode(w),
3274            Self::WorldBorderSize(ref p) => p.encode(w),
3275            Self::WorldBorderWarningDelay(ref p) => p.encode(w),
3276            Self::WorldBorderWarningReach(ref p) => p.encode(w),
3277            Self::Camera(ref p) => p.encode(w),
3278            Self::UpdateViewPosition(ref p) => p.encode(w),
3279            Self::UpdateViewDistance(ref p) => p.encode(w),
3280            Self::SetCursorItem(ref p) => p.encode(w),
3281            Self::SpawnPosition(ref p) => p.encode(w),
3282            Self::ScoreboardDisplayObjective(ref p) => p.encode(w),
3283            Self::EntityMetadata(ref p) => p.encode(w),
3284            Self::AttachEntity(ref p) => p.encode(w),
3285            Self::EntityVelocity(ref p) => p.encode(w),
3286            Self::EntityEquipment(ref p) => p.encode(w),
3287            Self::Experience(ref p) => p.encode(w),
3288            Self::UpdateHealth(ref p) => p.encode(w),
3289            Self::HeldItemSlot(ref p) => p.encode(w),
3290            Self::ScoreboardObjective(ref p) => p.encode(w),
3291            Self::SetPassengers(ref p) => p.encode(w),
3292            Self::SetPlayerInventory(ref p) => p.encode(w),
3293            Self::Teams(ref p) => p.encode(w),
3294            Self::ScoreboardScore(ref p) => p.encode(w),
3295            Self::SimulationDistance(ref p) => p.encode(w),
3296            Self::SetTitleSubtitle(ref p) => p.encode(w),
3297            Self::UpdateTime(ref p) => p.encode(w),
3298            Self::SetTitleText(ref p) => p.encode(w),
3299            Self::SetTitleTime(ref p) => p.encode(w),
3300            Self::EntitySoundEffect(ref p) => p.encode(w),
3301            Self::SoundEffect(ref p) => p.encode(w),
3302            Self::StartConfiguration(ref p) => p.encode(w),
3303            Self::StopSound(ref p) => p.encode(w),
3304            Self::StoreCookie(ref p) => p.encode(w),
3305            Self::SwingAnimation(ref p) => p.encode(w),
3306            Self::SystemChat(ref p) => p.encode(w),
3307            Self::PlayerlistHeader(ref p) => p.encode(w),
3308            Self::NbtQueryResponse(ref p) => p.encode(w),
3309            Self::Collect(ref p) => p.encode(w),
3310            Self::EntityTeleport(ref p) => p.encode(w),
3311            Self::TestInstanceBlockStatus(ref p) => p.encode(w),
3312            Self::SetTickingState(ref p) => p.encode(w),
3313            Self::StepTick(ref p) => p.encode(w),
3314            Self::Transfer(ref p) => p.encode(w),
3315            Self::Advancements(ref p) => p.encode(w),
3316            Self::EntityUpdateAttributes(ref p) => p.encode(w),
3317            Self::EntityEffect(ref p) => p.encode(w),
3318            Self::DeclareRecipes(ref p) => p.encode(w),
3319            Self::Tags(ref p) => p.encode(w),
3320            Self::SetProjectilePower(ref p) => p.encode(w),
3321            Self::CustomReportDetails(ref p) => p.encode(w),
3322            Self::ServerLinks(ref p) => p.encode(w),
3323            Self::TrackedWaypoint(ref p) => p.encode(w),
3324            Self::ClearDialog(ref p) => p.encode(w),
3325            Self::ShowDialog(ref p) => p.encode(w),
3326        }
3327    }
3328    fn name_of(id: i32) -> Option<&'static str> {
3329        match id {
3330            id::BUNDLE_DELIMITER => Some("bundle_delimiter"),
3331            id::SPAWN_ENTITY => Some("spawn_entity"),
3332            id::ANIMATION => Some("animation"),
3333            id::STATISTICS => Some("statistics"),
3334            id::ACKNOWLEDGE_PLAYER_DIGGING => Some("acknowledge_player_digging"),
3335            id::BLOCK_BREAK_ANIMATION => Some("block_break_animation"),
3336            id::TILE_ENTITY_DATA => Some("tile_entity_data"),
3337            id::BLOCK_ACTION => Some("block_action"),
3338            id::BLOCK_CHANGE => Some("block_change"),
3339            id::BOSS_BAR => Some("boss_bar"),
3340            id::DIFFICULTY => Some("difficulty"),
3341            id::CHUNK_BATCH_FINISHED => Some("chunk_batch_finished"),
3342            id::CHUNK_BATCH_START => Some("chunk_batch_start"),
3343            id::CHUNK_BIOMES => Some("chunk_biomes"),
3344            id::CLEAR_TITLES => Some("clear_titles"),
3345            id::TAB_COMPLETE => Some("tab_complete"),
3346            id::DECLARE_COMMANDS => Some("declare_commands"),
3347            id::CLOSE_WINDOW => Some("close_window"),
3348            id::WINDOW_ITEMS => Some("window_items"),
3349            id::CRAFT_PROGRESS_BAR => Some("craft_progress_bar"),
3350            id::SET_SLOT => Some("set_slot"),
3351            id::COOKIE_REQUEST => Some("cookie_request"),
3352            id::SET_COOLDOWN => Some("set_cooldown"),
3353            id::CHAT_SUGGESTIONS => Some("chat_suggestions"),
3354            id::CUSTOM_PAYLOAD => Some("custom_payload"),
3355            id::DAMAGE_EVENT => Some("damage_event"),
3356            id::DEBUG_BLOCK_VALUE => Some("debug_block_value"),
3357            id::DEBUG_CHUNK_VALUE => Some("debug_chunk_value"),
3358            id::DEBUG_ENTITY_VALUE => Some("debug_entity_value"),
3359            id::DEBUG_EVENT => Some("debug_event"),
3360            id::DEBUG_SAMPLE => Some("debug_sample"),
3361            id::HIDE_MESSAGE => Some("hide_message"),
3362            id::KICK_DISCONNECT => Some("kick_disconnect"),
3363            id::PROFILELESS_CHAT => Some("profileless_chat"),
3364            id::ENTITY_STATUS => Some("entity_status"),
3365            id::SYNC_ENTITY_POSITION => Some("sync_entity_position"),
3366            id::EXPLOSION => Some("explosion"),
3367            id::ADD_TRANSIENT_BLOCK => Some("add_transient_block"),
3368            id::UNLOAD_CHUNK => Some("unload_chunk"),
3369            id::GAME_STATE_CHANGE => Some("game_state_change"),
3370            id::GAME_RULE_VALUES => Some("game_rule_values"),
3371            id::GAME_TEST_HIGHLIGHT_POS => Some("game_test_highlight_pos"),
3372            id::OPEN_HORSE_WINDOW => Some("open_horse_window"),
3373            id::HURT_ANIMATION => Some("hurt_animation"),
3374            id::INITIALIZE_WORLD_BORDER => Some("initialize_world_border"),
3375            id::KEEP_ALIVE => Some("keep_alive"),
3376            id::MAP_CHUNK => Some("map_chunk"),
3377            id::WORLD_EVENT => Some("world_event"),
3378            id::WORLD_PARTICLES => Some("world_particles"),
3379            id::UPDATE_LIGHT => Some("update_light"),
3380            id::LOGIN => Some("login"),
3381            id::LOW_DISK_SPACE_WARNING => Some("low_disk_space_warning"),
3382            id::MAP => Some("map"),
3383            id::TRADE_LIST => Some("trade_list"),
3384            id::REL_ENTITY_MOVE => Some("rel_entity_move"),
3385            id::ENTITY_MOVE_LOOK => Some("entity_move_look"),
3386            id::MOVE_MINECART => Some("move_minecart"),
3387            id::ENTITY_LOOK => Some("entity_look"),
3388            id::VEHICLE_MOVE => Some("vehicle_move"),
3389            id::OPEN_BOOK => Some("open_book"),
3390            id::OPEN_WINDOW => Some("open_window"),
3391            id::OPEN_SIGN_ENTITY => Some("open_sign_entity"),
3392            id::PING => Some("ping"),
3393            id::PING_RESPONSE => Some("ping_response"),
3394            id::CRAFT_RECIPE_RESPONSE => Some("craft_recipe_response"),
3395            id::ABILITIES => Some("abilities"),
3396            id::PLAYER_CHAT => Some("player_chat"),
3397            id::END_COMBAT_EVENT => Some("end_combat_event"),
3398            id::ENTER_COMBAT_EVENT => Some("enter_combat_event"),
3399            id::DEATH_COMBAT_EVENT => Some("death_combat_event"),
3400            id::PLAYER_REMOVE => Some("player_remove"),
3401            id::PLAYER_INFO => Some("player_info"),
3402            id::FACE_PLAYER => Some("face_player"),
3403            id::POSITION => Some("position"),
3404            id::PLAYER_ROTATION => Some("player_rotation"),
3405            id::RECIPE_BOOK_ADD => Some("recipe_book_add"),
3406            id::RECIPE_BOOK_REMOVE => Some("recipe_book_remove"),
3407            id::RECIPE_BOOK_SETTINGS => Some("recipe_book_settings"),
3408            id::ENTITY_DESTROY => Some("entity_destroy"),
3409            id::REMOVE_ENTITY_EFFECT => Some("remove_entity_effect"),
3410            id::RESET_SCORE => Some("reset_score"),
3411            id::REMOVE_RESOURCE_PACK => Some("remove_resource_pack"),
3412            id::ADD_RESOURCE_PACK => Some("add_resource_pack"),
3413            id::POST_EFFECTS => Some("post_effects"),
3414            id::RESPAWN => Some("respawn"),
3415            id::ENTITY_HEAD_ROTATION => Some("entity_head_rotation"),
3416            id::MULTI_BLOCK_CHANGE => Some("multi_block_change"),
3417            id::SELECT_ADVANCEMENT_TAB => Some("select_advancement_tab"),
3418            id::SERVER_DATA => Some("server_data"),
3419            id::ACTION_BAR => Some("action_bar"),
3420            id::WORLD_BORDER_CENTER => Some("world_border_center"),
3421            id::WORLD_BORDER_LERP_SIZE => Some("world_border_lerp_size"),
3422            id::WORLD_BORDER_SIZE => Some("world_border_size"),
3423            id::WORLD_BORDER_WARNING_DELAY => Some("world_border_warning_delay"),
3424            id::WORLD_BORDER_WARNING_REACH => Some("world_border_warning_reach"),
3425            id::CAMERA => Some("camera"),
3426            id::UPDATE_VIEW_POSITION => Some("update_view_position"),
3427            id::UPDATE_VIEW_DISTANCE => Some("update_view_distance"),
3428            id::SET_CURSOR_ITEM => Some("set_cursor_item"),
3429            id::SPAWN_POSITION => Some("spawn_position"),
3430            id::SCOREBOARD_DISPLAY_OBJECTIVE => Some("scoreboard_display_objective"),
3431            id::ENTITY_METADATA => Some("entity_metadata"),
3432            id::ATTACH_ENTITY => Some("attach_entity"),
3433            id::ENTITY_VELOCITY => Some("entity_velocity"),
3434            id::ENTITY_EQUIPMENT => Some("entity_equipment"),
3435            id::EXPERIENCE => Some("experience"),
3436            id::UPDATE_HEALTH => Some("update_health"),
3437            id::HELD_ITEM_SLOT => Some("held_item_slot"),
3438            id::SCOREBOARD_OBJECTIVE => Some("scoreboard_objective"),
3439            id::SET_PASSENGERS => Some("set_passengers"),
3440            id::SET_PLAYER_INVENTORY => Some("set_player_inventory"),
3441            id::TEAMS => Some("teams"),
3442            id::SCOREBOARD_SCORE => Some("scoreboard_score"),
3443            id::SIMULATION_DISTANCE => Some("simulation_distance"),
3444            id::SET_TITLE_SUBTITLE => Some("set_title_subtitle"),
3445            id::UPDATE_TIME => Some("update_time"),
3446            id::SET_TITLE_TEXT => Some("set_title_text"),
3447            id::SET_TITLE_TIME => Some("set_title_time"),
3448            id::ENTITY_SOUND_EFFECT => Some("entity_sound_effect"),
3449            id::SOUND_EFFECT => Some("sound_effect"),
3450            id::START_CONFIGURATION => Some("start_configuration"),
3451            id::STOP_SOUND => Some("stop_sound"),
3452            id::STORE_COOKIE => Some("store_cookie"),
3453            id::SWING_ANIMATION => Some("swing_animation"),
3454            id::SYSTEM_CHAT => Some("system_chat"),
3455            id::PLAYERLIST_HEADER => Some("playerlist_header"),
3456            id::NBT_QUERY_RESPONSE => Some("nbt_query_response"),
3457            id::COLLECT => Some("collect"),
3458            id::ENTITY_TELEPORT => Some("entity_teleport"),
3459            id::TEST_INSTANCE_BLOCK_STATUS => Some("test_instance_block_status"),
3460            id::SET_TICKING_STATE => Some("set_ticking_state"),
3461            id::STEP_TICK => Some("step_tick"),
3462            id::TRANSFER => Some("transfer"),
3463            id::ADVANCEMENTS => Some("advancements"),
3464            id::ENTITY_UPDATE_ATTRIBUTES => Some("entity_update_attributes"),
3465            id::ENTITY_EFFECT => Some("entity_effect"),
3466            id::DECLARE_RECIPES => Some("declare_recipes"),
3467            id::TAGS => Some("tags"),
3468            id::SET_PROJECTILE_POWER => Some("set_projectile_power"),
3469            id::CUSTOM_REPORT_DETAILS => Some("custom_report_details"),
3470            id::SERVER_LINKS => Some("server_links"),
3471            id::TRACKED_WAYPOINT => Some("tracked_waypoint"),
3472            id::CLEAR_DIALOG => Some("clear_dialog"),
3473            id::SHOW_DIALOG => Some("show_dialog"),
3474            _ => None,
3475        }
3476    }
3477}
3478
3479impl ClientboundPlayPacket {
3480    /// All packet ids of this set, ascending.
3481    pub const IDS: &'static [i32] = &[
3482        id::BUNDLE_DELIMITER,
3483        id::SPAWN_ENTITY,
3484        id::ANIMATION,
3485        id::STATISTICS,
3486        id::ACKNOWLEDGE_PLAYER_DIGGING,
3487        id::BLOCK_BREAK_ANIMATION,
3488        id::TILE_ENTITY_DATA,
3489        id::BLOCK_ACTION,
3490        id::BLOCK_CHANGE,
3491        id::BOSS_BAR,
3492        id::DIFFICULTY,
3493        id::CHUNK_BATCH_FINISHED,
3494        id::CHUNK_BATCH_START,
3495        id::CHUNK_BIOMES,
3496        id::CLEAR_TITLES,
3497        id::TAB_COMPLETE,
3498        id::DECLARE_COMMANDS,
3499        id::CLOSE_WINDOW,
3500        id::WINDOW_ITEMS,
3501        id::CRAFT_PROGRESS_BAR,
3502        id::SET_SLOT,
3503        id::COOKIE_REQUEST,
3504        id::SET_COOLDOWN,
3505        id::CHAT_SUGGESTIONS,
3506        id::CUSTOM_PAYLOAD,
3507        id::DAMAGE_EVENT,
3508        id::DEBUG_BLOCK_VALUE,
3509        id::DEBUG_CHUNK_VALUE,
3510        id::DEBUG_ENTITY_VALUE,
3511        id::DEBUG_EVENT,
3512        id::DEBUG_SAMPLE,
3513        id::HIDE_MESSAGE,
3514        id::KICK_DISCONNECT,
3515        id::PROFILELESS_CHAT,
3516        id::ENTITY_STATUS,
3517        id::SYNC_ENTITY_POSITION,
3518        id::EXPLOSION,
3519        id::ADD_TRANSIENT_BLOCK,
3520        id::UNLOAD_CHUNK,
3521        id::GAME_STATE_CHANGE,
3522        id::GAME_RULE_VALUES,
3523        id::GAME_TEST_HIGHLIGHT_POS,
3524        id::OPEN_HORSE_WINDOW,
3525        id::HURT_ANIMATION,
3526        id::INITIALIZE_WORLD_BORDER,
3527        id::KEEP_ALIVE,
3528        id::MAP_CHUNK,
3529        id::WORLD_EVENT,
3530        id::WORLD_PARTICLES,
3531        id::UPDATE_LIGHT,
3532        id::LOGIN,
3533        id::LOW_DISK_SPACE_WARNING,
3534        id::MAP,
3535        id::TRADE_LIST,
3536        id::REL_ENTITY_MOVE,
3537        id::ENTITY_MOVE_LOOK,
3538        id::MOVE_MINECART,
3539        id::ENTITY_LOOK,
3540        id::VEHICLE_MOVE,
3541        id::OPEN_BOOK,
3542        id::OPEN_WINDOW,
3543        id::OPEN_SIGN_ENTITY,
3544        id::PING,
3545        id::PING_RESPONSE,
3546        id::CRAFT_RECIPE_RESPONSE,
3547        id::ABILITIES,
3548        id::PLAYER_CHAT,
3549        id::END_COMBAT_EVENT,
3550        id::ENTER_COMBAT_EVENT,
3551        id::DEATH_COMBAT_EVENT,
3552        id::PLAYER_REMOVE,
3553        id::PLAYER_INFO,
3554        id::FACE_PLAYER,
3555        id::POSITION,
3556        id::PLAYER_ROTATION,
3557        id::RECIPE_BOOK_ADD,
3558        id::RECIPE_BOOK_REMOVE,
3559        id::RECIPE_BOOK_SETTINGS,
3560        id::ENTITY_DESTROY,
3561        id::REMOVE_ENTITY_EFFECT,
3562        id::RESET_SCORE,
3563        id::REMOVE_RESOURCE_PACK,
3564        id::ADD_RESOURCE_PACK,
3565        id::POST_EFFECTS,
3566        id::RESPAWN,
3567        id::ENTITY_HEAD_ROTATION,
3568        id::MULTI_BLOCK_CHANGE,
3569        id::SELECT_ADVANCEMENT_TAB,
3570        id::SERVER_DATA,
3571        id::ACTION_BAR,
3572        id::WORLD_BORDER_CENTER,
3573        id::WORLD_BORDER_LERP_SIZE,
3574        id::WORLD_BORDER_SIZE,
3575        id::WORLD_BORDER_WARNING_DELAY,
3576        id::WORLD_BORDER_WARNING_REACH,
3577        id::CAMERA,
3578        id::UPDATE_VIEW_POSITION,
3579        id::UPDATE_VIEW_DISTANCE,
3580        id::SET_CURSOR_ITEM,
3581        id::SPAWN_POSITION,
3582        id::SCOREBOARD_DISPLAY_OBJECTIVE,
3583        id::ENTITY_METADATA,
3584        id::ATTACH_ENTITY,
3585        id::ENTITY_VELOCITY,
3586        id::ENTITY_EQUIPMENT,
3587        id::EXPERIENCE,
3588        id::UPDATE_HEALTH,
3589        id::HELD_ITEM_SLOT,
3590        id::SCOREBOARD_OBJECTIVE,
3591        id::SET_PASSENGERS,
3592        id::SET_PLAYER_INVENTORY,
3593        id::TEAMS,
3594        id::SCOREBOARD_SCORE,
3595        id::SIMULATION_DISTANCE,
3596        id::SET_TITLE_SUBTITLE,
3597        id::UPDATE_TIME,
3598        id::SET_TITLE_TEXT,
3599        id::SET_TITLE_TIME,
3600        id::ENTITY_SOUND_EFFECT,
3601        id::SOUND_EFFECT,
3602        id::START_CONFIGURATION,
3603        id::STOP_SOUND,
3604        id::STORE_COOKIE,
3605        id::SWING_ANIMATION,
3606        id::SYSTEM_CHAT,
3607        id::PLAYERLIST_HEADER,
3608        id::NBT_QUERY_RESPONSE,
3609        id::COLLECT,
3610        id::ENTITY_TELEPORT,
3611        id::TEST_INSTANCE_BLOCK_STATUS,
3612        id::SET_TICKING_STATE,
3613        id::STEP_TICK,
3614        id::TRANSFER,
3615        id::ADVANCEMENTS,
3616        id::ENTITY_UPDATE_ATTRIBUTES,
3617        id::ENTITY_EFFECT,
3618        id::DECLARE_RECIPES,
3619        id::TAGS,
3620        id::SET_PROJECTILE_POWER,
3621        id::CUSTOM_REPORT_DETAILS,
3622        id::SERVER_LINKS,
3623        id::TRACKED_WAYPOINT,
3624        id::CLEAR_DIALOG,
3625        id::SHOW_DIALOG,
3626    ];
3627    /// Generates a random packet with the given id (test support).
3628    #[cfg(feature = "testgen")]
3629    pub fn generate_by_id(id: i32, g: &mut Gen) -> Option<Self> {
3630        match id {
3631            id::BUNDLE_DELIMITER => Some(Self::BundleDelimiter(
3632                <BundleDelimiter as Generate>::generate(g),
3633            )),
3634            id::SPAWN_ENTITY => Some(Self::SpawnEntity(<SpawnEntity as Generate>::generate(g))),
3635            id::ANIMATION => Some(Self::Animation(<Animation as Generate>::generate(g))),
3636            id::STATISTICS => Some(Self::Statistics(<Statistics as Generate>::generate(g))),
3637            id::ACKNOWLEDGE_PLAYER_DIGGING => Some(Self::AcknowledgePlayerDigging(
3638                <AcknowledgePlayerDigging as Generate>::generate(g),
3639            )),
3640            id::BLOCK_BREAK_ANIMATION => Some(Self::BlockBreakAnimation(
3641                <BlockBreakAnimation as Generate>::generate(g),
3642            )),
3643            id::TILE_ENTITY_DATA => Some(Self::TileEntityData(
3644                <TileEntityData as Generate>::generate(g),
3645            )),
3646            id::BLOCK_ACTION => Some(Self::BlockAction(<BlockAction as Generate>::generate(g))),
3647            id::BLOCK_CHANGE => Some(Self::BlockChange(<BlockChange as Generate>::generate(g))),
3648            id::BOSS_BAR => Some(Self::BossBar(<BossBar as Generate>::generate(g))),
3649            id::DIFFICULTY => Some(Self::Difficulty(<Difficulty as Generate>::generate(g))),
3650            id::CHUNK_BATCH_FINISHED => Some(Self::ChunkBatchFinished(
3651                <ChunkBatchFinished as Generate>::generate(g),
3652            )),
3653            id::CHUNK_BATCH_START => Some(Self::ChunkBatchStart(
3654                <ChunkBatchStart as Generate>::generate(g),
3655            )),
3656            id::CHUNK_BIOMES => Some(Self::ChunkBiomes(<ChunkBiomes as Generate>::generate(g))),
3657            id::CLEAR_TITLES => Some(Self::ClearTitles(<ClearTitles as Generate>::generate(g))),
3658            id::TAB_COMPLETE => Some(Self::TabComplete(<TabComplete as Generate>::generate(g))),
3659            id::DECLARE_COMMANDS => Some(Self::DeclareCommands(
3660                <DeclareCommands as Generate>::generate(g),
3661            )),
3662            id::CLOSE_WINDOW => Some(Self::CloseWindow(<CloseWindow as Generate>::generate(g))),
3663            id::WINDOW_ITEMS => Some(Self::WindowItems(<WindowItems as Generate>::generate(g))),
3664            id::CRAFT_PROGRESS_BAR => Some(Self::CraftProgressBar(
3665                <CraftProgressBar as Generate>::generate(g),
3666            )),
3667            id::SET_SLOT => Some(Self::SetSlot(<SetSlot as Generate>::generate(g))),
3668            id::COOKIE_REQUEST => Some(Self::CookieRequest(<CookieRequest as Generate>::generate(
3669                g,
3670            ))),
3671            id::SET_COOLDOWN => Some(Self::SetCooldown(<SetCooldown as Generate>::generate(g))),
3672            id::CHAT_SUGGESTIONS => Some(Self::ChatSuggestions(
3673                <ChatSuggestions as Generate>::generate(g),
3674            )),
3675            id::CUSTOM_PAYLOAD => Some(Self::CustomPayload(<CustomPayload as Generate>::generate(
3676                g,
3677            ))),
3678            id::DAMAGE_EVENT => Some(Self::DamageEvent(<DamageEvent as Generate>::generate(g))),
3679            id::DEBUG_BLOCK_VALUE => Some(Self::DebugBlockValue(
3680                <DebugBlockValue as Generate>::generate(g),
3681            )),
3682            id::DEBUG_CHUNK_VALUE => Some(Self::DebugChunkValue(
3683                <DebugChunkValue as Generate>::generate(g),
3684            )),
3685            id::DEBUG_ENTITY_VALUE => Some(Self::DebugEntityValue(
3686                <DebugEntityValue as Generate>::generate(g),
3687            )),
3688            id::DEBUG_EVENT => Some(Self::DebugEvent(<DebugEvent as Generate>::generate(g))),
3689            id::DEBUG_SAMPLE => Some(Self::DebugSample(<DebugSample as Generate>::generate(g))),
3690            id::HIDE_MESSAGE => Some(Self::HideMessage(<HideMessage as Generate>::generate(g))),
3691            id::KICK_DISCONNECT => Some(Self::KickDisconnect(
3692                <KickDisconnect as Generate>::generate(g),
3693            )),
3694            id::PROFILELESS_CHAT => Some(Self::ProfilelessChat(
3695                <ProfilelessChat as Generate>::generate(g),
3696            )),
3697            id::ENTITY_STATUS => Some(Self::EntityStatus(<EntityStatus as Generate>::generate(g))),
3698            id::SYNC_ENTITY_POSITION => Some(Self::SyncEntityPosition(
3699                <SyncEntityPosition as Generate>::generate(g),
3700            )),
3701            id::EXPLOSION => Some(Self::Explosion(<Explosion as Generate>::generate(g))),
3702            id::ADD_TRANSIENT_BLOCK => Some(Self::AddTransientBlock(
3703                <AddTransientBlock as Generate>::generate(g),
3704            )),
3705            id::UNLOAD_CHUNK => Some(Self::UnloadChunk(<UnloadChunk as Generate>::generate(g))),
3706            id::GAME_STATE_CHANGE => Some(Self::GameStateChange(
3707                <GameStateChange as Generate>::generate(g),
3708            )),
3709            id::GAME_RULE_VALUES => Some(Self::GameRuleValues(
3710                <GameRuleValues as Generate>::generate(g),
3711            )),
3712            id::GAME_TEST_HIGHLIGHT_POS => Some(Self::GameTestHighlightPos(
3713                <GameTestHighlightPos as Generate>::generate(g),
3714            )),
3715            id::OPEN_HORSE_WINDOW => Some(Self::OpenHorseWindow(
3716                <OpenHorseWindow as Generate>::generate(g),
3717            )),
3718            id::HURT_ANIMATION => Some(Self::HurtAnimation(<HurtAnimation as Generate>::generate(
3719                g,
3720            ))),
3721            id::INITIALIZE_WORLD_BORDER => Some(Self::InitializeWorldBorder(
3722                <InitializeWorldBorder as Generate>::generate(g),
3723            )),
3724            id::KEEP_ALIVE => Some(Self::KeepAlive(<KeepAlive as Generate>::generate(g))),
3725            id::MAP_CHUNK => Some(Self::MapChunk(<MapChunk as Generate>::generate(g))),
3726            id::WORLD_EVENT => Some(Self::WorldEvent(<WorldEvent as Generate>::generate(g))),
3727            id::WORLD_PARTICLES => Some(Self::WorldParticles(
3728                <WorldParticles as Generate>::generate(g),
3729            )),
3730            id::UPDATE_LIGHT => Some(Self::UpdateLight(<UpdateLight as Generate>::generate(g))),
3731            id::LOGIN => Some(Self::Login(<Login as Generate>::generate(g))),
3732            id::LOW_DISK_SPACE_WARNING => Some(Self::LowDiskSpaceWarning(
3733                <LowDiskSpaceWarning as Generate>::generate(g),
3734            )),
3735            id::MAP => Some(Self::Map(<Map as Generate>::generate(g))),
3736            id::TRADE_LIST => Some(Self::TradeList(<TradeList as Generate>::generate(g))),
3737            id::REL_ENTITY_MOVE => Some(Self::RelEntityMove(
3738                <RelEntityMove as Generate>::generate(g),
3739            )),
3740            id::ENTITY_MOVE_LOOK => Some(Self::EntityMoveLook(
3741                <EntityMoveLook as Generate>::generate(g),
3742            )),
3743            id::MOVE_MINECART => Some(Self::MoveMinecart(<MoveMinecart as Generate>::generate(g))),
3744            id::ENTITY_LOOK => Some(Self::EntityLook(<EntityLook as Generate>::generate(g))),
3745            id::VEHICLE_MOVE => Some(Self::VehicleMove(<VehicleMove as Generate>::generate(g))),
3746            id::OPEN_BOOK => Some(Self::OpenBook(<OpenBook as Generate>::generate(g))),
3747            id::OPEN_WINDOW => Some(Self::OpenWindow(<OpenWindow as Generate>::generate(g))),
3748            id::OPEN_SIGN_ENTITY => Some(Self::OpenSignEntity(
3749                <OpenSignEntity as Generate>::generate(g),
3750            )),
3751            id::PING => Some(Self::Ping(<Ping as Generate>::generate(g))),
3752            id::PING_RESPONSE => Some(Self::PingResponse(<PingResponse as Generate>::generate(g))),
3753            id::CRAFT_RECIPE_RESPONSE => Some(Self::CraftRecipeResponse(
3754                <CraftRecipeResponse as Generate>::generate(g),
3755            )),
3756            id::ABILITIES => Some(Self::Abilities(<Abilities as Generate>::generate(g))),
3757            id::PLAYER_CHAT => Some(Self::PlayerChat(<PlayerChat as Generate>::generate(g))),
3758            id::END_COMBAT_EVENT => Some(Self::EndCombatEvent(
3759                <EndCombatEvent as Generate>::generate(g),
3760            )),
3761            id::ENTER_COMBAT_EVENT => Some(Self::EnterCombatEvent(
3762                <EnterCombatEvent as Generate>::generate(g),
3763            )),
3764            id::DEATH_COMBAT_EVENT => Some(Self::DeathCombatEvent(
3765                <DeathCombatEvent as Generate>::generate(g),
3766            )),
3767            id::PLAYER_REMOVE => Some(Self::PlayerRemove(<PlayerRemove as Generate>::generate(g))),
3768            id::PLAYER_INFO => Some(Self::PlayerInfo(<PlayerInfo as Generate>::generate(g))),
3769            id::FACE_PLAYER => Some(Self::FacePlayer(<FacePlayer as Generate>::generate(g))),
3770            id::POSITION => Some(Self::Position(<Position as Generate>::generate(g))),
3771            id::PLAYER_ROTATION => Some(Self::PlayerRotation(
3772                <PlayerRotation as Generate>::generate(g),
3773            )),
3774            id::RECIPE_BOOK_ADD => Some(Self::RecipeBookAdd(
3775                <RecipeBookAdd as Generate>::generate(g),
3776            )),
3777            id::RECIPE_BOOK_REMOVE => Some(Self::RecipeBookRemove(
3778                <RecipeBookRemove as Generate>::generate(g),
3779            )),
3780            id::RECIPE_BOOK_SETTINGS => Some(Self::RecipeBookSettings(
3781                <RecipeBookSettings as Generate>::generate(g),
3782            )),
3783            id::ENTITY_DESTROY => Some(Self::EntityDestroy(<EntityDestroy as Generate>::generate(
3784                g,
3785            ))),
3786            id::REMOVE_ENTITY_EFFECT => Some(Self::RemoveEntityEffect(
3787                <RemoveEntityEffect as Generate>::generate(g),
3788            )),
3789            id::RESET_SCORE => Some(Self::ResetScore(<ResetScore as Generate>::generate(g))),
3790            id::REMOVE_RESOURCE_PACK => Some(Self::RemoveResourcePack(
3791                <RemoveResourcePack as Generate>::generate(g),
3792            )),
3793            id::ADD_RESOURCE_PACK => Some(Self::AddResourcePack(
3794                <AddResourcePack as Generate>::generate(g),
3795            )),
3796            id::POST_EFFECTS => Some(Self::PostEffects(<PostEffects as Generate>::generate(g))),
3797            id::RESPAWN => Some(Self::Respawn(<Respawn as Generate>::generate(g))),
3798            id::ENTITY_HEAD_ROTATION => Some(Self::EntityHeadRotation(
3799                <EntityHeadRotation as Generate>::generate(g),
3800            )),
3801            id::MULTI_BLOCK_CHANGE => Some(Self::MultiBlockChange(
3802                <MultiBlockChange as Generate>::generate(g),
3803            )),
3804            id::SELECT_ADVANCEMENT_TAB => Some(Self::SelectAdvancementTab(
3805                <SelectAdvancementTab as Generate>::generate(g),
3806            )),
3807            id::SERVER_DATA => Some(Self::ServerData(<ServerData as Generate>::generate(g))),
3808            id::ACTION_BAR => Some(Self::ActionBar(<ActionBar as Generate>::generate(g))),
3809            id::WORLD_BORDER_CENTER => Some(Self::WorldBorderCenter(
3810                <WorldBorderCenter as Generate>::generate(g),
3811            )),
3812            id::WORLD_BORDER_LERP_SIZE => Some(Self::WorldBorderLerpSize(
3813                <WorldBorderLerpSize as Generate>::generate(g),
3814            )),
3815            id::WORLD_BORDER_SIZE => Some(Self::WorldBorderSize(
3816                <WorldBorderSize as Generate>::generate(g),
3817            )),
3818            id::WORLD_BORDER_WARNING_DELAY => Some(Self::WorldBorderWarningDelay(
3819                <WorldBorderWarningDelay as Generate>::generate(g),
3820            )),
3821            id::WORLD_BORDER_WARNING_REACH => Some(Self::WorldBorderWarningReach(
3822                <WorldBorderWarningReach as Generate>::generate(g),
3823            )),
3824            id::CAMERA => Some(Self::Camera(<Camera as Generate>::generate(g))),
3825            id::UPDATE_VIEW_POSITION => Some(Self::UpdateViewPosition(
3826                <UpdateViewPosition as Generate>::generate(g),
3827            )),
3828            id::UPDATE_VIEW_DISTANCE => Some(Self::UpdateViewDistance(
3829                <UpdateViewDistance as Generate>::generate(g),
3830            )),
3831            id::SET_CURSOR_ITEM => Some(Self::SetCursorItem(
3832                <SetCursorItem as Generate>::generate(g),
3833            )),
3834            id::SPAWN_POSITION => Some(Self::SpawnPosition(<SpawnPosition as Generate>::generate(
3835                g,
3836            ))),
3837            id::SCOREBOARD_DISPLAY_OBJECTIVE => Some(Self::ScoreboardDisplayObjective(
3838                <ScoreboardDisplayObjective as Generate>::generate(g),
3839            )),
3840            id::ENTITY_METADATA => Some(Self::EntityMetadata(
3841                <EntityMetadata as Generate>::generate(g),
3842            )),
3843            id::ATTACH_ENTITY => Some(Self::AttachEntity(<AttachEntity as Generate>::generate(g))),
3844            id::ENTITY_VELOCITY => Some(Self::EntityVelocity(
3845                <EntityVelocity as Generate>::generate(g),
3846            )),
3847            id::ENTITY_EQUIPMENT => Some(Self::EntityEquipment(
3848                <EntityEquipment as Generate>::generate(g),
3849            )),
3850            id::EXPERIENCE => Some(Self::Experience(<Experience as Generate>::generate(g))),
3851            id::UPDATE_HEALTH => Some(Self::UpdateHealth(<UpdateHealth as Generate>::generate(g))),
3852            id::HELD_ITEM_SLOT => Some(Self::HeldItemSlot(<HeldItemSlot as Generate>::generate(g))),
3853            id::SCOREBOARD_OBJECTIVE => Some(Self::ScoreboardObjective(
3854                <ScoreboardObjective as Generate>::generate(g),
3855            )),
3856            id::SET_PASSENGERS => Some(Self::SetPassengers(<SetPassengers as Generate>::generate(
3857                g,
3858            ))),
3859            id::SET_PLAYER_INVENTORY => Some(Self::SetPlayerInventory(
3860                <SetPlayerInventory as Generate>::generate(g),
3861            )),
3862            id::TEAMS => Some(Self::Teams(<Teams as Generate>::generate(g))),
3863            id::SCOREBOARD_SCORE => Some(Self::ScoreboardScore(
3864                <ScoreboardScore as Generate>::generate(g),
3865            )),
3866            id::SIMULATION_DISTANCE => Some(Self::SimulationDistance(
3867                <SimulationDistance as Generate>::generate(g),
3868            )),
3869            id::SET_TITLE_SUBTITLE => Some(Self::SetTitleSubtitle(
3870                <SetTitleSubtitle as Generate>::generate(g),
3871            )),
3872            id::UPDATE_TIME => Some(Self::UpdateTime(<UpdateTime as Generate>::generate(g))),
3873            id::SET_TITLE_TEXT => Some(Self::SetTitleText(<SetTitleText as Generate>::generate(g))),
3874            id::SET_TITLE_TIME => Some(Self::SetTitleTime(<SetTitleTime as Generate>::generate(g))),
3875            id::ENTITY_SOUND_EFFECT => Some(Self::EntitySoundEffect(
3876                <EntitySoundEffect as Generate>::generate(g),
3877            )),
3878            id::SOUND_EFFECT => Some(Self::SoundEffect(<SoundEffect as Generate>::generate(g))),
3879            id::START_CONFIGURATION => Some(Self::StartConfiguration(
3880                <StartConfiguration as Generate>::generate(g),
3881            )),
3882            id::STOP_SOUND => Some(Self::StopSound(<StopSound as Generate>::generate(g))),
3883            id::STORE_COOKIE => Some(Self::StoreCookie(<StoreCookie as Generate>::generate(g))),
3884            id::SWING_ANIMATION => Some(Self::SwingAnimation(
3885                <SwingAnimation as Generate>::generate(g),
3886            )),
3887            id::SYSTEM_CHAT => Some(Self::SystemChat(<SystemChat as Generate>::generate(g))),
3888            id::PLAYERLIST_HEADER => Some(Self::PlayerlistHeader(
3889                <PlayerlistHeader as Generate>::generate(g),
3890            )),
3891            id::NBT_QUERY_RESPONSE => Some(Self::NbtQueryResponse(
3892                <NbtQueryResponse as Generate>::generate(g),
3893            )),
3894            id::COLLECT => Some(Self::Collect(<Collect as Generate>::generate(g))),
3895            id::ENTITY_TELEPORT => Some(Self::EntityTeleport(
3896                <EntityTeleport as Generate>::generate(g),
3897            )),
3898            id::TEST_INSTANCE_BLOCK_STATUS => Some(Self::TestInstanceBlockStatus(
3899                <TestInstanceBlockStatus as Generate>::generate(g),
3900            )),
3901            id::SET_TICKING_STATE => Some(Self::SetTickingState(
3902                <SetTickingState as Generate>::generate(g),
3903            )),
3904            id::STEP_TICK => Some(Self::StepTick(<StepTick as Generate>::generate(g))),
3905            id::TRANSFER => Some(Self::Transfer(<Transfer as Generate>::generate(g))),
3906            id::ADVANCEMENTS => Some(Self::Advancements(<Advancements as Generate>::generate(g))),
3907            id::ENTITY_UPDATE_ATTRIBUTES => Some(Self::EntityUpdateAttributes(
3908                <EntityUpdateAttributes as Generate>::generate(g),
3909            )),
3910            id::ENTITY_EFFECT => Some(Self::EntityEffect(<EntityEffect as Generate>::generate(g))),
3911            id::DECLARE_RECIPES => Some(Self::DeclareRecipes(
3912                <DeclareRecipes as Generate>::generate(g),
3913            )),
3914            id::TAGS => Some(Self::Tags(<Tags as Generate>::generate(g))),
3915            id::SET_PROJECTILE_POWER => Some(Self::SetProjectilePower(
3916                <SetProjectilePower as Generate>::generate(g),
3917            )),
3918            id::CUSTOM_REPORT_DETAILS => Some(Self::CustomReportDetails(
3919                <CustomReportDetails as Generate>::generate(g),
3920            )),
3921            id::SERVER_LINKS => Some(Self::ServerLinks(<ServerLinks as Generate>::generate(g))),
3922            id::TRACKED_WAYPOINT => Some(Self::TrackedWaypoint(
3923                <TrackedWaypoint as Generate>::generate(g),
3924            )),
3925            id::CLEAR_DIALOG => Some(Self::ClearDialog(<ClearDialog as Generate>::generate(g))),
3926            id::SHOW_DIALOG => Some(Self::ShowDialog(<ShowDialog as Generate>::generate(g))),
3927            _ => None,
3928        }
3929    }
3930}