steel_registry/generated/
vanilla_packets.rs1#[doc = r" The current Minecraft protocol version. This changes only when the protocol itself is modified."]
2pub const CURRENT_MC_PROTOCOL: i32 = 775i32;
3pub mod login {
4 pub const C_LOGIN_DISCONNECT: i32 = 0i32;
5 pub const C_HELLO: i32 = 1i32;
6 pub const C_LOGIN_FINISHED: i32 = 2i32;
7 pub const C_LOGIN_COMPRESSION: i32 = 3i32;
8 pub const C_CUSTOM_QUERY: i32 = 4i32;
9 pub const C_COOKIE_REQUEST: i32 = 5i32;
10 pub const S_HELLO: i32 = 0i32;
11 pub const S_KEY: i32 = 1i32;
12 pub const S_CUSTOM_QUERY_ANSWER: i32 = 2i32;
13 pub const S_LOGIN_ACKNOWLEDGED: i32 = 3i32;
14 pub const S_COOKIE_RESPONSE: i32 = 4i32;
15}
16pub mod play {
17 pub const C_BUNDLE_DELIMITER: i32 = 0i32;
18 pub const C_ADD_ENTITY: i32 = 1i32;
19 pub const C_ANIMATE: i32 = 2i32;
20 pub const C_AWARD_STATS: i32 = 3i32;
21 pub const C_BLOCK_CHANGED_ACK: i32 = 4i32;
22 pub const C_BLOCK_DESTRUCTION: i32 = 5i32;
23 pub const C_BLOCK_ENTITY_DATA: i32 = 6i32;
24 pub const C_BLOCK_EVENT: i32 = 7i32;
25 pub const C_BLOCK_UPDATE: i32 = 8i32;
26 pub const C_BOSS_EVENT: i32 = 9i32;
27 pub const C_CHANGE_DIFFICULTY: i32 = 10i32;
28 pub const C_CHUNK_BATCH_FINISHED: i32 = 11i32;
29 pub const C_CHUNK_BATCH_START: i32 = 12i32;
30 pub const C_CHUNKS_BIOMES: i32 = 13i32;
31 pub const C_CLEAR_TITLES: i32 = 14i32;
32 pub const C_COMMAND_SUGGESTIONS: i32 = 15i32;
33 pub const C_COMMANDS: i32 = 16i32;
34 pub const C_CONTAINER_CLOSE: i32 = 17i32;
35 pub const C_CONTAINER_SET_CONTENT: i32 = 18i32;
36 pub const C_CONTAINER_SET_DATA: i32 = 19i32;
37 pub const C_CONTAINER_SET_SLOT: i32 = 20i32;
38 pub const C_COOKIE_REQUEST: i32 = 21i32;
39 pub const C_COOLDOWN: i32 = 22i32;
40 pub const C_CUSTOM_CHAT_COMPLETIONS: i32 = 23i32;
41 pub const C_CUSTOM_PAYLOAD: i32 = 24i32;
42 pub const C_DAMAGE_EVENT: i32 = 25i32;
43 pub const C_DEBUG_BLOCK_VALUE: i32 = 26i32;
44 pub const C_DEBUG_CHUNK_VALUE: i32 = 27i32;
45 pub const C_DEBUG_ENTITY_VALUE: i32 = 28i32;
46 pub const C_DEBUG_EVENT: i32 = 29i32;
47 pub const C_DEBUG_SAMPLE: i32 = 30i32;
48 pub const C_DELETE_CHAT: i32 = 31i32;
49 pub const C_DISCONNECT: i32 = 32i32;
50 pub const C_DISGUISED_CHAT: i32 = 33i32;
51 pub const C_ENTITY_EVENT: i32 = 34i32;
52 pub const C_ENTITY_POSITION_SYNC: i32 = 35i32;
53 pub const C_EXPLODE: i32 = 36i32;
54 pub const C_FORGET_LEVEL_CHUNK: i32 = 37i32;
55 pub const C_GAME_EVENT: i32 = 38i32;
56 pub const C_GAME_RULE_VALUES: i32 = 39i32;
57 pub const C_GAME_TEST_HIGHLIGHT_POS: i32 = 40i32;
58 pub const C_MOUNT_SCREEN_OPEN: i32 = 41i32;
59 pub const C_HURT_ANIMATION: i32 = 42i32;
60 pub const C_INITIALIZE_BORDER: i32 = 43i32;
61 pub const C_KEEP_ALIVE: i32 = 44i32;
62 pub const C_LEVEL_CHUNK_WITH_LIGHT: i32 = 45i32;
63 pub const C_LEVEL_EVENT: i32 = 46i32;
64 pub const C_LEVEL_PARTICLES: i32 = 47i32;
65 pub const C_LIGHT_UPDATE: i32 = 48i32;
66 pub const C_LOGIN: i32 = 49i32;
67 pub const C_LOW_DISK_SPACE_WARNING: i32 = 50i32;
68 pub const C_MAP_ITEM_DATA: i32 = 51i32;
69 pub const C_MERCHANT_OFFERS: i32 = 52i32;
70 pub const C_MOVE_ENTITY_POS: i32 = 53i32;
71 pub const C_MOVE_ENTITY_POS_ROT: i32 = 54i32;
72 pub const C_MOVE_MINECART_ALONG_TRACK: i32 = 55i32;
73 pub const C_MOVE_ENTITY_ROT: i32 = 56i32;
74 pub const C_MOVE_VEHICLE: i32 = 57i32;
75 pub const C_OPEN_BOOK: i32 = 58i32;
76 pub const C_OPEN_SCREEN: i32 = 59i32;
77 pub const C_OPEN_SIGN_EDITOR: i32 = 60i32;
78 pub const C_PING: i32 = 61i32;
79 pub const C_PONG_RESPONSE: i32 = 62i32;
80 pub const C_PLACE_GHOST_RECIPE: i32 = 63i32;
81 pub const C_PLAYER_ABILITIES: i32 = 64i32;
82 pub const C_PLAYER_CHAT: i32 = 65i32;
83 pub const C_PLAYER_COMBAT_END: i32 = 66i32;
84 pub const C_PLAYER_COMBAT_ENTER: i32 = 67i32;
85 pub const C_PLAYER_COMBAT_KILL: i32 = 68i32;
86 pub const C_PLAYER_INFO_REMOVE: i32 = 69i32;
87 pub const C_PLAYER_INFO_UPDATE: i32 = 70i32;
88 pub const C_PLAYER_LOOK_AT: i32 = 71i32;
89 pub const C_PLAYER_POSITION: i32 = 72i32;
90 pub const C_PLAYER_ROTATION: i32 = 73i32;
91 pub const C_RECIPE_BOOK_ADD: i32 = 74i32;
92 pub const C_RECIPE_BOOK_REMOVE: i32 = 75i32;
93 pub const C_RECIPE_BOOK_SETTINGS: i32 = 76i32;
94 pub const C_REMOVE_ENTITIES: i32 = 77i32;
95 pub const C_REMOVE_MOB_EFFECT: i32 = 78i32;
96 pub const C_RESET_SCORE: i32 = 79i32;
97 pub const C_RESOURCE_PACK_POP: i32 = 80i32;
98 pub const C_RESOURCE_PACK_PUSH: i32 = 81i32;
99 pub const C_RESPAWN: i32 = 82i32;
100 pub const C_ROTATE_HEAD: i32 = 83i32;
101 pub const C_SECTION_BLOCKS_UPDATE: i32 = 84i32;
102 pub const C_SELECT_ADVANCEMENTS_TAB: i32 = 85i32;
103 pub const C_SERVER_DATA: i32 = 86i32;
104 pub const C_SET_ACTION_BAR_TEXT: i32 = 87i32;
105 pub const C_SET_BORDER_CENTER: i32 = 88i32;
106 pub const C_SET_BORDER_LERP_SIZE: i32 = 89i32;
107 pub const C_SET_BORDER_SIZE: i32 = 90i32;
108 pub const C_SET_BORDER_WARNING_DELAY: i32 = 91i32;
109 pub const C_SET_BORDER_WARNING_DISTANCE: i32 = 92i32;
110 pub const C_SET_CAMERA: i32 = 93i32;
111 pub const C_SET_CHUNK_CACHE_CENTER: i32 = 94i32;
112 pub const C_SET_CHUNK_CACHE_RADIUS: i32 = 95i32;
113 pub const C_SET_CURSOR_ITEM: i32 = 96i32;
114 pub const C_SET_DEFAULT_SPAWN_POSITION: i32 = 97i32;
115 pub const C_SET_DISPLAY_OBJECTIVE: i32 = 98i32;
116 pub const C_SET_ENTITY_DATA: i32 = 99i32;
117 pub const C_SET_ENTITY_LINK: i32 = 100i32;
118 pub const C_SET_ENTITY_MOTION: i32 = 101i32;
119 pub const C_SET_EQUIPMENT: i32 = 102i32;
120 pub const C_SET_EXPERIENCE: i32 = 103i32;
121 pub const C_SET_HEALTH: i32 = 104i32;
122 pub const C_SET_HELD_SLOT: i32 = 105i32;
123 pub const C_SET_OBJECTIVE: i32 = 106i32;
124 pub const C_SET_PASSENGERS: i32 = 107i32;
125 pub const C_SET_PLAYER_INVENTORY: i32 = 108i32;
126 pub const C_SET_PLAYER_TEAM: i32 = 109i32;
127 pub const C_SET_SCORE: i32 = 110i32;
128 pub const C_SET_SIMULATION_DISTANCE: i32 = 111i32;
129 pub const C_SET_SUBTITLE_TEXT: i32 = 112i32;
130 pub const C_SET_TIME: i32 = 113i32;
131 pub const C_SET_TITLE_TEXT: i32 = 114i32;
132 pub const C_SET_TITLES_ANIMATION: i32 = 115i32;
133 pub const C_SOUND_ENTITY: i32 = 116i32;
134 pub const C_SOUND: i32 = 117i32;
135 pub const C_START_CONFIGURATION: i32 = 118i32;
136 pub const C_STOP_SOUND: i32 = 119i32;
137 pub const C_STORE_COOKIE: i32 = 120i32;
138 pub const C_SYSTEM_CHAT: i32 = 121i32;
139 pub const C_TAB_LIST: i32 = 122i32;
140 pub const C_TAG_QUERY: i32 = 123i32;
141 pub const C_TAKE_ITEM_ENTITY: i32 = 124i32;
142 pub const C_TELEPORT_ENTITY: i32 = 125i32;
143 pub const C_TEST_INSTANCE_BLOCK_STATUS: i32 = 126i32;
144 pub const C_TICKING_STATE: i32 = 127i32;
145 pub const C_TICKING_STEP: i32 = 128i32;
146 pub const C_TRANSFER: i32 = 129i32;
147 pub const C_UPDATE_ADVANCEMENTS: i32 = 130i32;
148 pub const C_UPDATE_ATTRIBUTES: i32 = 131i32;
149 pub const C_UPDATE_MOB_EFFECT: i32 = 132i32;
150 pub const C_UPDATE_RECIPES: i32 = 133i32;
151 pub const C_UPDATE_TAGS: i32 = 134i32;
152 pub const C_PROJECTILE_POWER: i32 = 135i32;
153 pub const C_CUSTOM_REPORT_DETAILS: i32 = 136i32;
154 pub const C_SERVER_LINKS: i32 = 137i32;
155 pub const C_WAYPOINT: i32 = 138i32;
156 pub const C_CLEAR_DIALOG: i32 = 139i32;
157 pub const C_SHOW_DIALOG: i32 = 140i32;
158 pub const S_ACCEPT_TELEPORTATION: i32 = 0i32;
159 pub const S_ATTACK: i32 = 1i32;
160 pub const S_BLOCK_ENTITY_TAG_QUERY: i32 = 2i32;
161 pub const S_BUNDLE_ITEM_SELECTED: i32 = 3i32;
162 pub const S_CHANGE_DIFFICULTY: i32 = 4i32;
163 pub const S_CHANGE_GAME_MODE: i32 = 5i32;
164 pub const S_CHAT_ACK: i32 = 6i32;
165 pub const S_CHAT_COMMAND: i32 = 7i32;
166 pub const S_CHAT_COMMAND_SIGNED: i32 = 8i32;
167 pub const S_CHAT: i32 = 9i32;
168 pub const S_CHAT_SESSION_UPDATE: i32 = 10i32;
169 pub const S_CHUNK_BATCH_RECEIVED: i32 = 11i32;
170 pub const S_CLIENT_COMMAND: i32 = 12i32;
171 pub const S_CLIENT_TICK_END: i32 = 13i32;
172 pub const S_CLIENT_INFORMATION: i32 = 14i32;
173 pub const S_COMMAND_SUGGESTION: i32 = 15i32;
174 pub const S_CONFIGURATION_ACKNOWLEDGED: i32 = 16i32;
175 pub const S_CONTAINER_BUTTON_CLICK: i32 = 17i32;
176 pub const S_CONTAINER_CLICK: i32 = 18i32;
177 pub const S_CONTAINER_CLOSE: i32 = 19i32;
178 pub const S_CONTAINER_SLOT_STATE_CHANGED: i32 = 20i32;
179 pub const S_COOKIE_RESPONSE: i32 = 21i32;
180 pub const S_CUSTOM_PAYLOAD: i32 = 22i32;
181 pub const S_DEBUG_SUBSCRIPTION_REQUEST: i32 = 23i32;
182 pub const S_EDIT_BOOK: i32 = 24i32;
183 pub const S_ENTITY_TAG_QUERY: i32 = 25i32;
184 pub const S_INTERACT: i32 = 26i32;
185 pub const S_JIGSAW_GENERATE: i32 = 27i32;
186 pub const S_KEEP_ALIVE: i32 = 28i32;
187 pub const S_LOCK_DIFFICULTY: i32 = 29i32;
188 pub const S_MOVE_PLAYER_POS: i32 = 30i32;
189 pub const S_MOVE_PLAYER_POS_ROT: i32 = 31i32;
190 pub const S_MOVE_PLAYER_ROT: i32 = 32i32;
191 pub const S_MOVE_PLAYER_STATUS_ONLY: i32 = 33i32;
192 pub const S_MOVE_VEHICLE: i32 = 34i32;
193 pub const S_PADDLE_BOAT: i32 = 35i32;
194 pub const S_PICK_ITEM_FROM_BLOCK: i32 = 36i32;
195 pub const S_PICK_ITEM_FROM_ENTITY: i32 = 37i32;
196 pub const S_PING_REQUEST: i32 = 38i32;
197 pub const S_PLACE_RECIPE: i32 = 39i32;
198 pub const S_PLAYER_ABILITIES: i32 = 40i32;
199 pub const S_PLAYER_ACTION: i32 = 41i32;
200 pub const S_PLAYER_COMMAND: i32 = 42i32;
201 pub const S_PLAYER_INPUT: i32 = 43i32;
202 pub const S_PLAYER_LOADED: i32 = 44i32;
203 pub const S_PONG: i32 = 45i32;
204 pub const S_RECIPE_BOOK_CHANGE_SETTINGS: i32 = 46i32;
205 pub const S_RECIPE_BOOK_SEEN_RECIPE: i32 = 47i32;
206 pub const S_RENAME_ITEM: i32 = 48i32;
207 pub const S_RESOURCE_PACK: i32 = 49i32;
208 pub const S_SEEN_ADVANCEMENTS: i32 = 50i32;
209 pub const S_SELECT_TRADE: i32 = 51i32;
210 pub const S_SET_BEACON: i32 = 52i32;
211 pub const S_SET_CARRIED_ITEM: i32 = 53i32;
212 pub const S_SET_COMMAND_BLOCK: i32 = 54i32;
213 pub const S_SET_COMMAND_MINECART: i32 = 55i32;
214 pub const S_SET_CREATIVE_MODE_SLOT: i32 = 56i32;
215 pub const S_SET_GAME_RULE: i32 = 57i32;
216 pub const S_SET_JIGSAW_BLOCK: i32 = 58i32;
217 pub const S_SET_STRUCTURE_BLOCK: i32 = 59i32;
218 pub const S_SET_TEST_BLOCK: i32 = 60i32;
219 pub const S_SIGN_UPDATE: i32 = 61i32;
220 pub const S_SPECTATE_ENTITY: i32 = 62i32;
221 pub const S_SWING: i32 = 63i32;
222 pub const S_TELEPORT_TO_ENTITY: i32 = 64i32;
223 pub const S_TEST_INSTANCE_BLOCK_ACTION: i32 = 65i32;
224 pub const S_USE_ITEM_ON: i32 = 66i32;
225 pub const S_USE_ITEM: i32 = 67i32;
226 pub const S_CUSTOM_CLICK_ACTION: i32 = 68i32;
227}
228pub mod status {
229 pub const C_STATUS_RESPONSE: i32 = 0i32;
230 pub const C_PONG_RESPONSE: i32 = 1i32;
231 pub const S_STATUS_REQUEST: i32 = 0i32;
232 pub const S_PING_REQUEST: i32 = 1i32;
233}
234pub mod handshake {
235 pub const S_INTENTION: i32 = 0i32;
236}
237pub mod config {
238 pub const C_COOKIE_REQUEST: i32 = 0i32;
239 pub const C_CUSTOM_PAYLOAD: i32 = 1i32;
240 pub const C_DISCONNECT: i32 = 2i32;
241 pub const C_FINISH_CONFIGURATION: i32 = 3i32;
242 pub const C_KEEP_ALIVE: i32 = 4i32;
243 pub const C_PING: i32 = 5i32;
244 pub const C_RESET_CHAT: i32 = 6i32;
245 pub const C_REGISTRY_DATA: i32 = 7i32;
246 pub const C_RESOURCE_PACK_POP: i32 = 8i32;
247 pub const C_RESOURCE_PACK_PUSH: i32 = 9i32;
248 pub const C_STORE_COOKIE: i32 = 10i32;
249 pub const C_TRANSFER: i32 = 11i32;
250 pub const C_UPDATE_ENABLED_FEATURES: i32 = 12i32;
251 pub const C_UPDATE_TAGS: i32 = 13i32;
252 pub const C_SELECT_KNOWN_PACKS: i32 = 14i32;
253 pub const C_CUSTOM_REPORT_DETAILS: i32 = 15i32;
254 pub const C_SERVER_LINKS: i32 = 16i32;
255 pub const C_CLEAR_DIALOG: i32 = 17i32;
256 pub const C_SHOW_DIALOG: i32 = 18i32;
257 pub const C_CODE_OF_CONDUCT: i32 = 19i32;
258 pub const S_CLIENT_INFORMATION: i32 = 0i32;
259 pub const S_COOKIE_RESPONSE: i32 = 1i32;
260 pub const S_CUSTOM_PAYLOAD: i32 = 2i32;
261 pub const S_FINISH_CONFIGURATION: i32 = 3i32;
262 pub const S_KEEP_ALIVE: i32 = 4i32;
263 pub const S_PONG: i32 = 5i32;
264 pub const S_RESOURCE_PACK: i32 = 6i32;
265 pub const S_SELECT_KNOWN_PACKS: i32 = 7i32;
266 pub const S_CUSTOM_CLICK_ACTION: i32 = 8i32;
267 pub const S_ACCEPT_CODE_OF_CONDUCT: i32 = 9i32;
268}