PocketMine-MP 5.15.1 git-be6754494fdbbb9dd57c058ba0e33a4a78c4581f
ProtocolInfo.php
1<?php
2
3/*
4 * This file is part of BedrockProtocol.
5 * Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/BedrockProtocol>
6 *
7 * BedrockProtocol is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 */
12
13declare(strict_types=1);
14
15namespace pocketmine\network\mcpe\protocol;
16
20final class ProtocolInfo{
21
22 private function __construct(){
23 //NOOP
24 }
25
35 public const CURRENT_PROTOCOL = 671;
37 public const MINECRAFT_VERSION = 'v1.20.80';
39 public const MINECRAFT_VERSION_NETWORK = '1.20.80';
40
41 public const LOGIN_PACKET = 0x01;
42 public const PLAY_STATUS_PACKET = 0x02;
43 public const SERVER_TO_CLIENT_HANDSHAKE_PACKET = 0x03;
44 public const CLIENT_TO_SERVER_HANDSHAKE_PACKET = 0x04;
45 public const DISCONNECT_PACKET = 0x05;
46 public const RESOURCE_PACKS_INFO_PACKET = 0x06;
47 public const RESOURCE_PACK_STACK_PACKET = 0x07;
48 public const RESOURCE_PACK_CLIENT_RESPONSE_PACKET = 0x08;
49 public const TEXT_PACKET = 0x09;
50 public const SET_TIME_PACKET = 0x0a;
51 public const START_GAME_PACKET = 0x0b;
52 public const ADD_PLAYER_PACKET = 0x0c;
53 public const ADD_ACTOR_PACKET = 0x0d;
54 public const REMOVE_ACTOR_PACKET = 0x0e;
55 public const ADD_ITEM_ACTOR_PACKET = 0x0f;
56 public const SERVER_PLAYER_POST_MOVE_POSITION_PACKET = 0x10;
57 public const TAKE_ITEM_ACTOR_PACKET = 0x11;
58 public const MOVE_ACTOR_ABSOLUTE_PACKET = 0x12;
59 public const MOVE_PLAYER_PACKET = 0x13;
60 public const PASSENGER_JUMP_PACKET = 0x14;
61 public const UPDATE_BLOCK_PACKET = 0x15;
62 public const ADD_PAINTING_PACKET = 0x16;
63 public const TICK_SYNC_PACKET = 0x17;
64 public const LEVEL_SOUND_EVENT_PACKET_V1 = 0x18;
65 public const LEVEL_EVENT_PACKET = 0x19;
66 public const BLOCK_EVENT_PACKET = 0x1a;
67 public const ACTOR_EVENT_PACKET = 0x1b;
68 public const MOB_EFFECT_PACKET = 0x1c;
69 public const UPDATE_ATTRIBUTES_PACKET = 0x1d;
70 public const INVENTORY_TRANSACTION_PACKET = 0x1e;
71 public const MOB_EQUIPMENT_PACKET = 0x1f;
72 public const MOB_ARMOR_EQUIPMENT_PACKET = 0x20;
73 public const INTERACT_PACKET = 0x21;
74 public const BLOCK_PICK_REQUEST_PACKET = 0x22;
75 public const ACTOR_PICK_REQUEST_PACKET = 0x23;
76 public const PLAYER_ACTION_PACKET = 0x24;
77
78 public const HURT_ARMOR_PACKET = 0x26;
79 public const SET_ACTOR_DATA_PACKET = 0x27;
80 public const SET_ACTOR_MOTION_PACKET = 0x28;
81 public const SET_ACTOR_LINK_PACKET = 0x29;
82 public const SET_HEALTH_PACKET = 0x2a;
83 public const SET_SPAWN_POSITION_PACKET = 0x2b;
84 public const ANIMATE_PACKET = 0x2c;
85 public const RESPAWN_PACKET = 0x2d;
86 public const CONTAINER_OPEN_PACKET = 0x2e;
87 public const CONTAINER_CLOSE_PACKET = 0x2f;
88 public const PLAYER_HOTBAR_PACKET = 0x30;
89 public const INVENTORY_CONTENT_PACKET = 0x31;
90 public const INVENTORY_SLOT_PACKET = 0x32;
91 public const CONTAINER_SET_DATA_PACKET = 0x33;
92 public const CRAFTING_DATA_PACKET = 0x34;
93
94 public const GUI_DATA_PICK_ITEM_PACKET = 0x36;
95
96 public const BLOCK_ACTOR_DATA_PACKET = 0x38;
97 public const PLAYER_INPUT_PACKET = 0x39;
98 public const LEVEL_CHUNK_PACKET = 0x3a;
99 public const SET_COMMANDS_ENABLED_PACKET = 0x3b;
100 public const SET_DIFFICULTY_PACKET = 0x3c;
101 public const CHANGE_DIMENSION_PACKET = 0x3d;
102 public const SET_PLAYER_GAME_TYPE_PACKET = 0x3e;
103 public const PLAYER_LIST_PACKET = 0x3f;
104 public const SIMPLE_EVENT_PACKET = 0x40;
105 public const LEGACY_TELEMETRY_EVENT_PACKET = 0x41;
106 public const SPAWN_EXPERIENCE_ORB_PACKET = 0x42;
107 public const CLIENTBOUND_MAP_ITEM_DATA_PACKET = 0x43;
108 public const MAP_INFO_REQUEST_PACKET = 0x44;
109 public const REQUEST_CHUNK_RADIUS_PACKET = 0x45;
110 public const CHUNK_RADIUS_UPDATED_PACKET = 0x46;
111
112 public const GAME_RULES_CHANGED_PACKET = 0x48;
113 public const CAMERA_PACKET = 0x49;
114 public const BOSS_EVENT_PACKET = 0x4a;
115 public const SHOW_CREDITS_PACKET = 0x4b;
116 public const AVAILABLE_COMMANDS_PACKET = 0x4c;
117 public const COMMAND_REQUEST_PACKET = 0x4d;
118 public const COMMAND_BLOCK_UPDATE_PACKET = 0x4e;
119 public const COMMAND_OUTPUT_PACKET = 0x4f;
120 public const UPDATE_TRADE_PACKET = 0x50;
121 public const UPDATE_EQUIP_PACKET = 0x51;
122 public const RESOURCE_PACK_DATA_INFO_PACKET = 0x52;
123 public const RESOURCE_PACK_CHUNK_DATA_PACKET = 0x53;
124 public const RESOURCE_PACK_CHUNK_REQUEST_PACKET = 0x54;
125 public const TRANSFER_PACKET = 0x55;
126 public const PLAY_SOUND_PACKET = 0x56;
127 public const STOP_SOUND_PACKET = 0x57;
128 public const SET_TITLE_PACKET = 0x58;
129 public const ADD_BEHAVIOR_TREE_PACKET = 0x59;
130 public const STRUCTURE_BLOCK_UPDATE_PACKET = 0x5a;
131 public const SHOW_STORE_OFFER_PACKET = 0x5b;
132 public const PURCHASE_RECEIPT_PACKET = 0x5c;
133 public const PLAYER_SKIN_PACKET = 0x5d;
134 public const SUB_CLIENT_LOGIN_PACKET = 0x5e;
135 public const AUTOMATION_CLIENT_CONNECT_PACKET = 0x5f;
136 public const SET_LAST_HURT_BY_PACKET = 0x60;
137 public const BOOK_EDIT_PACKET = 0x61;
138 public const NPC_REQUEST_PACKET = 0x62;
139 public const PHOTO_TRANSFER_PACKET = 0x63;
140 public const MODAL_FORM_REQUEST_PACKET = 0x64;
141 public const MODAL_FORM_RESPONSE_PACKET = 0x65;
142 public const SERVER_SETTINGS_REQUEST_PACKET = 0x66;
143 public const SERVER_SETTINGS_RESPONSE_PACKET = 0x67;
144 public const SHOW_PROFILE_PACKET = 0x68;
145 public const SET_DEFAULT_GAME_TYPE_PACKET = 0x69;
146 public const REMOVE_OBJECTIVE_PACKET = 0x6a;
147 public const SET_DISPLAY_OBJECTIVE_PACKET = 0x6b;
148 public const SET_SCORE_PACKET = 0x6c;
149 public const LAB_TABLE_PACKET = 0x6d;
150 public const UPDATE_BLOCK_SYNCED_PACKET = 0x6e;
151 public const MOVE_ACTOR_DELTA_PACKET = 0x6f;
152 public const SET_SCOREBOARD_IDENTITY_PACKET = 0x70;
153 public const SET_LOCAL_PLAYER_AS_INITIALIZED_PACKET = 0x71;
154 public const UPDATE_SOFT_ENUM_PACKET = 0x72;
155 public const NETWORK_STACK_LATENCY_PACKET = 0x73;
156
157 public const SPAWN_PARTICLE_EFFECT_PACKET = 0x76;
158 public const AVAILABLE_ACTOR_IDENTIFIERS_PACKET = 0x77;
159 public const LEVEL_SOUND_EVENT_PACKET_V2 = 0x78;
160 public const NETWORK_CHUNK_PUBLISHER_UPDATE_PACKET = 0x79;
161 public const BIOME_DEFINITION_LIST_PACKET = 0x7a;
162 public const LEVEL_SOUND_EVENT_PACKET = 0x7b;
163 public const LEVEL_EVENT_GENERIC_PACKET = 0x7c;
164 public const LECTERN_UPDATE_PACKET = 0x7d;
165
166 public const CLIENT_CACHE_STATUS_PACKET = 0x81;
167 public const ON_SCREEN_TEXTURE_ANIMATION_PACKET = 0x82;
168 public const MAP_CREATE_LOCKED_COPY_PACKET = 0x83;
169 public const STRUCTURE_TEMPLATE_DATA_REQUEST_PACKET = 0x84;
170 public const STRUCTURE_TEMPLATE_DATA_RESPONSE_PACKET = 0x85;
171
172 public const CLIENT_CACHE_BLOB_STATUS_PACKET = 0x87;
173 public const CLIENT_CACHE_MISS_RESPONSE_PACKET = 0x88;
174 public const EDUCATION_SETTINGS_PACKET = 0x89;
175 public const EMOTE_PACKET = 0x8a;
176 public const MULTIPLAYER_SETTINGS_PACKET = 0x8b;
177 public const SETTINGS_COMMAND_PACKET = 0x8c;
178 public const ANVIL_DAMAGE_PACKET = 0x8d;
179 public const COMPLETED_USING_ITEM_PACKET = 0x8e;
180 public const NETWORK_SETTINGS_PACKET = 0x8f;
181 public const PLAYER_AUTH_INPUT_PACKET = 0x90;
182 public const CREATIVE_CONTENT_PACKET = 0x91;
183 public const PLAYER_ENCHANT_OPTIONS_PACKET = 0x92;
184 public const ITEM_STACK_REQUEST_PACKET = 0x93;
185 public const ITEM_STACK_RESPONSE_PACKET = 0x94;
186 public const PLAYER_ARMOR_DAMAGE_PACKET = 0x95;
187 public const CODE_BUILDER_PACKET = 0x96;
188 public const UPDATE_PLAYER_GAME_TYPE_PACKET = 0x97;
189 public const EMOTE_LIST_PACKET = 0x98;
190 public const POSITION_TRACKING_D_B_SERVER_BROADCAST_PACKET = 0x99;
191 public const POSITION_TRACKING_D_B_CLIENT_REQUEST_PACKET = 0x9a;
192 public const DEBUG_INFO_PACKET = 0x9b;
193 public const PACKET_VIOLATION_WARNING_PACKET = 0x9c;
194 public const MOTION_PREDICTION_HINTS_PACKET = 0x9d;
195 public const ANIMATE_ENTITY_PACKET = 0x9e;
196 public const CAMERA_SHAKE_PACKET = 0x9f;
197 public const PLAYER_FOG_PACKET = 0xa0;
198 public const CORRECT_PLAYER_MOVE_PREDICTION_PACKET = 0xa1;
199 public const ITEM_COMPONENT_PACKET = 0xa2;
200
201 public const CLIENTBOUND_DEBUG_RENDERER_PACKET = 0xa4;
202 public const SYNC_ACTOR_PROPERTY_PACKET = 0xa5;
203 public const ADD_VOLUME_ENTITY_PACKET = 0xa6;
204 public const REMOVE_VOLUME_ENTITY_PACKET = 0xa7;
205 public const SIMULATION_TYPE_PACKET = 0xa8;
206 public const NPC_DIALOGUE_PACKET = 0xa9;
207 public const EDU_URI_RESOURCE_PACKET = 0xaa;
208 public const CREATE_PHOTO_PACKET = 0xab;
209 public const UPDATE_SUB_CHUNK_BLOCKS_PACKET = 0xac;
210
211 public const SUB_CHUNK_PACKET = 0xae;
212 public const SUB_CHUNK_REQUEST_PACKET = 0xaf;
213 public const PLAYER_START_ITEM_COOLDOWN_PACKET = 0xb0;
214 public const SCRIPT_MESSAGE_PACKET = 0xb1;
215 public const CODE_BUILDER_SOURCE_PACKET = 0xb2;
216 public const TICKING_AREAS_LOAD_STATUS_PACKET = 0xb3;
217 public const DIMENSION_DATA_PACKET = 0xb4;
218 public const AGENT_ACTION_EVENT_PACKET = 0xb5;
219 public const CHANGE_MOB_PROPERTY_PACKET = 0xb6;
220 public const LESSON_PROGRESS_PACKET = 0xb7;
221 public const REQUEST_ABILITY_PACKET = 0xb8;
222 public const REQUEST_PERMISSIONS_PACKET = 0xb9;
223 public const TOAST_REQUEST_PACKET = 0xba;
224 public const UPDATE_ABILITIES_PACKET = 0xbb;
225 public const UPDATE_ADVENTURE_SETTINGS_PACKET = 0xbc;
226 public const DEATH_INFO_PACKET = 0xbd;
227 public const EDITOR_NETWORK_PACKET = 0xbe;
228 public const FEATURE_REGISTRY_PACKET = 0xbf;
229 public const SERVER_STATS_PACKET = 0xc0;
230 public const REQUEST_NETWORK_SETTINGS_PACKET = 0xc1;
231 public const GAME_TEST_REQUEST_PACKET = 0xc2;
232 public const GAME_TEST_RESULTS_PACKET = 0xc3;
233 public const UPDATE_CLIENT_INPUT_LOCKS_PACKET = 0xc4;
234
235 public const CAMERA_PRESETS_PACKET = 0xc6;
236 public const UNLOCKED_RECIPES_PACKET = 0xc7;
237
238 public const CAMERA_INSTRUCTION_PACKET = 0x12c;
239 public const COMPRESSED_BIOME_DEFINITION_LIST_PACKET = 0x12d;
240 public const TRIM_DATA_PACKET = 0x12e;
241 public const OPEN_SIGN_PACKET = 0x12f;
242 public const AGENT_ANIMATION_PACKET = 0x130;
243 public const REFRESH_ENTITLEMENTS_PACKET = 0x131;
244 public const PLAYER_TOGGLE_CRAFTER_SLOT_REQUEST_PACKET = 0x132;
245 public const SET_PLAYER_INVENTORY_OPTIONS_PACKET = 0x133;
246 public const SET_HUD_PACKET = 0x134;
247
248}