Skip to content

Commit

Permalink
1.0.5 - Latest protocol changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tee7even authored and Tee7even committed Mar 28, 2017
1 parent 46542a3 commit 62403c9
Showing 1 changed file with 57 additions and 52 deletions.
109 changes: 57 additions & 52 deletions src/main/java/cn/nukkit/network/protocol/ProtocolInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ public interface ProtocolInfo {
/**
* Actual Minecraft: PE protocol version
*/
byte CURRENT_PROTOCOL = 102;
String MINECRAFT_VERSION = "v1.0.4";
String MINECRAFT_VERSION_NETWORK = "1.0.4";
byte CURRENT_PROTOCOL = 105;
String MINECRAFT_VERSION = "v1.0.5";
String MINECRAFT_VERSION_NETWORK = "1.0.5";

byte LOGIN_PACKET = 0x01;
byte PLAY_STATUS_PACKET = 0x02;
Expand Down Expand Up @@ -47,53 +47,58 @@ public interface ProtocolInfo {
byte MOB_EQUIPMENT_PACKET = 0x20;
byte MOB_ARMOR_EQUIPMENT_PACKET = 0x21;
byte INTERACT_PACKET = 0x22;
byte USE_ITEM_PACKET = 0x23;
byte PLAYER_ACTION_PACKET = 0x24;
byte PLAYER_FALL_PACKET = 0x25;
byte HURT_ARMOR_PACKET = 0x26;
byte SET_ENTITY_DATA_PACKET = 0x27;
byte SET_ENTITY_MOTION_PACKET = 0x28;
byte SET_ENTITY_LINK_PACKET = 0x29;
byte SET_HEALTH_PACKET = 0x2a;
byte SET_SPAWN_POSITION_PACKET = 0x2b;
byte ANIMATE_PACKET = 0x2c;
byte RESPAWN_PACKET = 0x2d;
byte DROP_ITEM_PACKET = 0x2e;
byte INVENTORY_ACTION_PACKET = 0x2f;
byte CONTAINER_OPEN_PACKET = 0x30;
byte CONTAINER_CLOSE_PACKET = 0x31;
byte CONTAINER_SET_SLOT_PACKET = 0x32;
byte CONTAINER_SET_DATA_PACKET = 0x33;
byte CONTAINER_SET_CONTENT_PACKET = 0x34;
byte CRAFTING_DATA_PACKET = 0x35;
byte CRAFTING_EVENT_PACKET = 0x36;
byte ADVENTURE_SETTINGS_PACKET = 0x37;
byte BLOCK_ENTITY_DATA_PACKET = 0x38;
byte PLAYER_INPUT_PACKET = 0x39;
byte FULL_CHUNK_DATA_PACKET = 0x3a;
byte SET_COMMANDS_ENABLED_PACKET = 0x3b;
byte SET_DIFFICULTY_PACKET = 0x3c;
byte CHANGE_DIMENSION_PACKET = 0x3d;
byte SET_PLAYER_GAME_TYPE_PACKET = 0x3e;
byte PLAYER_LIST_PACKET = 0x3f;
byte EVENT_PACKET = 0x40;
byte SPAWN_EXPERIENCE_ORB_PACKET = 0x41;
byte CLIENTBOUND_MAP_ITEM_DATA_PACKET = 0x42;
byte MAP_INFO_REQUEST_PACKET = 0x43;
byte REQUEST_CHUNK_RADIUS_PACKET = 0x44;
byte CHUNK_RADIUS_UPDATED_PACKET = 0x45;
byte ITEM_FRAME_DROP_ITEM_PACKET = 0x46;
byte REPLACE_ITEM_IN_SLOT_PACKET = 0x47; //ReplaceSelectedItemPacket
byte GAME_RULES_CHANGED_PACKET = 0x48;
byte CAMERA_PACKET = 0x49;
byte ADD_ITEM_PACKET = 0x4a;
byte BOSS_EVENT_PACKET = 0x4b;
byte AVAILABLE_COMMANDS_PACKET = 0x4d;
byte COMMAND_STEP_PACKET = 0x4e;
byte UPDATE_TRADE_PACKET = 0x4f;
byte RESOURCE_PACK_DATA_INFO_PACKET = 0x50;
byte RESOURCE_PACK_CHUNK_DATA_PACKET = 0x51;
byte RESOURCE_PACK_CHUNK_REQUEST_PACKET = 0x52;
byte TRANSFER_PACKET = 0x53;

byte BLOCK_PICK_REQUEST_PACKET = 0x23;
byte USE_ITEM_PACKET = 0x24;
byte PLAYER_ACTION_PACKET = 0x25;
byte PLAYER_FALL_PACKET = 0x26;
byte HURT_ARMOR_PACKET = 0x27;
byte SET_ENTITY_DATA_PACKET = 0x28;
byte SET_ENTITY_MOTION_PACKET = 0x29;
byte SET_ENTITY_LINK_PACKET = 0x2a;
byte SET_HEALTH_PACKET = 0x2b;
byte SET_SPAWN_POSITION_PACKET = 0x2c;
byte ANIMATE_PACKET = 0x2d;
byte RESPAWN_PACKET = 0x2e;
byte DROP_ITEM_PACKET = 0x2f;
byte INVENTORY_ACTION_PACKET = 0x30;
byte CONTAINER_OPEN_PACKET = 0x31;
byte CONTAINER_CLOSE_PACKET = 0x32;
byte CONTAINER_SET_SLOT_PACKET = 0x33;
byte CONTAINER_SET_DATA_PACKET = 0x34;
byte CONTAINER_SET_CONTENT_PACKET = 0x35;
byte CRAFTING_DATA_PACKET = 0x36;
byte CRAFTING_EVENT_PACKET = 0x37;
byte ADVENTURE_SETTINGS_PACKET = 0x38;
byte BLOCK_ENTITY_DATA_PACKET = 0x39;
byte PLAYER_INPUT_PACKET = 0x3a;
byte FULL_CHUNK_DATA_PACKET = 0x3b;
byte SET_COMMANDS_ENABLED_PACKET = 0x3c;
byte SET_DIFFICULTY_PACKET = 0x3d;
byte CHANGE_DIMENSION_PACKET = 0x3e;
byte SET_PLAYER_GAME_TYPE_PACKET = 0x3f;
byte PLAYER_LIST_PACKET = 0x40;
byte EVENT_PACKET = 0x41;
byte SPAWN_EXPERIENCE_ORB_PACKET = 0x42;
byte CLIENTBOUND_MAP_ITEM_DATA_PACKET = 0x43;
byte MAP_INFO_REQUEST_PACKET = 0x44;
byte REQUEST_CHUNK_RADIUS_PACKET = 0x45;
byte CHUNK_RADIUS_UPDATED_PACKET = 0x46;
byte ITEM_FRAME_DROP_ITEM_PACKET = 0x47;
byte REPLACE_ITEM_IN_SLOT_PACKET = 0x48; //ReplaceSelectedItemPacket
byte GAME_RULES_CHANGED_PACKET = 0x49;
byte CAMERA_PACKET = 0x4a;
byte ADD_ITEM_PACKET = 0x4b;
byte BOSS_EVENT_PACKET = 0x4c;
byte SHOW_CREDITS_PACKET = 0x4d;
byte AVAILABLE_COMMANDS_PACKET = 0x4e;
byte COMMAND_STEP_PACKET = 0x4f;
byte COMMAND_BLOCK_UPDATE_PACKET = 0x50;
byte UPDATE_TRADE_PACKET = 0x51;
byte RESOURCE_PACK_DATA_INFO_PACKET = 0x52;
byte RESOURCE_PACK_CHUNK_DATA_PACKET = 0x53;
byte RESOURCE_PACK_CHUNK_REQUEST_PACKET = 0x54;
byte TRANSFER_PACKET = 0x55;
byte PLAY_SOUND_PACKET = 0x56;
byte STOP_SOUND_PACKET = 0x57;
byte SET_TITLE_PACKET = 0x58;
}

0 comments on commit 62403c9

Please sign in to comment.