mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
A bunch of really dirty hacks to get 1.1.0.0 working
Mojang: once again, what the hell have you done.
This commit is contained in:
@ -31,74 +31,74 @@ interface ProtocolInfo{
|
||||
/**
|
||||
* Actual Minecraft: PE protocol version
|
||||
*/
|
||||
const CURRENT_PROTOCOL = 105;
|
||||
const MINECRAFT_VERSION = "v1.0.5.0 beta";
|
||||
const MINECRAFT_VERSION_NETWORK = "1.0.5.0";
|
||||
const CURRENT_PROTOCOL = 110;
|
||||
const MINECRAFT_VERSION = "v1.1.0.0 beta";
|
||||
const MINECRAFT_VERSION_NETWORK = "1.1.0.0";
|
||||
|
||||
const LOGIN_PACKET = 0x01;
|
||||
const PLAY_STATUS_PACKET = 0x02;
|
||||
const SERVER_TO_CLIENT_HANDSHAKE_PACKET = 0x03;
|
||||
const CLIENT_TO_SERVER_HANDSHAKE_PACKET = 0x04;
|
||||
const DISCONNECT_PACKET = 0x05;
|
||||
const BATCH_PACKET = 0x06;
|
||||
const RESOURCE_PACKS_INFO_PACKET = 0x07;
|
||||
const RESOURCE_PACK_STACK_PACKET = 0x08; //ResourcePacksStackPacket
|
||||
const RESOURCE_PACK_CLIENT_RESPONSE_PACKET = 0x09;
|
||||
const TEXT_PACKET = 0x0a;
|
||||
const SET_TIME_PACKET = 0x0b;
|
||||
const START_GAME_PACKET = 0x0c;
|
||||
const ADD_PLAYER_PACKET = 0x0d;
|
||||
const ADD_ENTITY_PACKET = 0x0e;
|
||||
const REMOVE_ENTITY_PACKET = 0x0f;
|
||||
const ADD_ITEM_ENTITY_PACKET = 0x10;
|
||||
const ADD_HANGING_ENTITY_PACKET = 0x11;
|
||||
const TAKE_ITEM_ENTITY_PACKET = 0x12;
|
||||
const MOVE_ENTITY_PACKET = 0x13;
|
||||
const MOVE_PLAYER_PACKET = 0x14;
|
||||
const RIDER_JUMP_PACKET = 0x15;
|
||||
const REMOVE_BLOCK_PACKET = 0x16;
|
||||
const UPDATE_BLOCK_PACKET = 0x17;
|
||||
const ADD_PAINTING_PACKET = 0x18;
|
||||
const EXPLODE_PACKET = 0x19;
|
||||
const LEVEL_SOUND_EVENT_PACKET = 0x1a;
|
||||
const LEVEL_EVENT_PACKET = 0x1b;
|
||||
const BLOCK_EVENT_PACKET = 0x1c;
|
||||
const ENTITY_EVENT_PACKET = 0x1d;
|
||||
const MOB_EFFECT_PACKET = 0x1e;
|
||||
const UPDATE_ATTRIBUTES_PACKET = 0x1f;
|
||||
const MOB_EQUIPMENT_PACKET = 0x20;
|
||||
const MOB_ARMOR_EQUIPMENT_PACKET = 0x21;
|
||||
const INTERACT_PACKET = 0x22;
|
||||
const BLOCK_PICK_REQUEST_PACKET = 0x23;
|
||||
const USE_ITEM_PACKET = 0x24;
|
||||
const PLAYER_ACTION_PACKET = 0x25;
|
||||
const PLAYER_FALL_PACKET = 0x26;
|
||||
const HURT_ARMOR_PACKET = 0x27;
|
||||
const SET_ENTITY_DATA_PACKET = 0x28;
|
||||
const SET_ENTITY_MOTION_PACKET = 0x29;
|
||||
const SET_ENTITY_LINK_PACKET = 0x2a;
|
||||
const SET_HEALTH_PACKET = 0x2b;
|
||||
const SET_SPAWN_POSITION_PACKET = 0x2c;
|
||||
const ANIMATE_PACKET = 0x2d;
|
||||
const RESPAWN_PACKET = 0x2e;
|
||||
const DROP_ITEM_PACKET = 0x2f;
|
||||
const INVENTORY_ACTION_PACKET = 0x30;
|
||||
const CONTAINER_OPEN_PACKET = 0x31;
|
||||
const CONTAINER_CLOSE_PACKET = 0x32;
|
||||
const CONTAINER_SET_SLOT_PACKET = 0x33;
|
||||
const CONTAINER_SET_DATA_PACKET = 0x34;
|
||||
const CONTAINER_SET_CONTENT_PACKET = 0x35;
|
||||
const CRAFTING_DATA_PACKET = 0x36;
|
||||
const CRAFTING_EVENT_PACKET = 0x37;
|
||||
const ADVENTURE_SETTINGS_PACKET = 0x38;
|
||||
const BLOCK_ENTITY_DATA_PACKET = 0x39;
|
||||
const PLAYER_INPUT_PACKET = 0x3a;
|
||||
const FULL_CHUNK_DATA_PACKET = 0x3b;
|
||||
const SET_COMMANDS_ENABLED_PACKET = 0x3c;
|
||||
const SET_DIFFICULTY_PACKET = 0x3d;
|
||||
const CHANGE_DIMENSION_PACKET = 0x3e;
|
||||
const SET_PLAYER_GAME_TYPE_PACKET = 0x3f;
|
||||
const PLAYER_LIST_PACKET = 0x40;
|
||||
const RESOURCE_PACKS_INFO_PACKET = 0x06;
|
||||
const RESOURCE_PACK_STACK_PACKET = 0x07; //ResourcePacksStackPacket
|
||||
const RESOURCE_PACK_CLIENT_RESPONSE_PACKET = 0x08;
|
||||
const TEXT_PACKET = 0x09;
|
||||
const SET_TIME_PACKET = 0x0a;
|
||||
const START_GAME_PACKET = 0x0b;
|
||||
const ADD_PLAYER_PACKET = 0x0c;
|
||||
const ADD_ENTITY_PACKET = 0x0d;
|
||||
const REMOVE_ENTITY_PACKET = 0x0e;
|
||||
const ADD_ITEM_ENTITY_PACKET = 0x0f;
|
||||
const ADD_HANGING_ENTITY_PACKET = 0x10;
|
||||
const TAKE_ITEM_ENTITY_PACKET = 0x11;
|
||||
const MOVE_ENTITY_PACKET = 0x12;
|
||||
const MOVE_PLAYER_PACKET = 0x13;
|
||||
const RIDER_JUMP_PACKET = 0x14;
|
||||
const REMOVE_BLOCK_PACKET = 0x15;
|
||||
const UPDATE_BLOCK_PACKET = 0x16;
|
||||
const ADD_PAINTING_PACKET = 0x17;
|
||||
const EXPLODE_PACKET = 0x18;
|
||||
const LEVEL_SOUND_EVENT_PACKET = 0x19;
|
||||
const LEVEL_EVENT_PACKET = 0x1a;
|
||||
const BLOCK_EVENT_PACKET = 0x1b;
|
||||
const ENTITY_EVENT_PACKET = 0x1c;
|
||||
const MOB_EFFECT_PACKET = 0x1d;
|
||||
const UPDATE_ATTRIBUTES_PACKET = 0x1e;
|
||||
const MOB_EQUIPMENT_PACKET = 0x1f;
|
||||
const MOB_ARMOR_EQUIPMENT_PACKET = 0x20;
|
||||
const INTERACT_PACKET = 0x21;
|
||||
const BLOCK_PICK_REQUEST_PACKET = 0x22;
|
||||
const USE_ITEM_PACKET = 0x23;
|
||||
const PLAYER_ACTION_PACKET = 0x24;
|
||||
const ENTITY_FALL_PACKET = 0x25; //PlayerFallPacket
|
||||
const HURT_ARMOR_PACKET = 0x26;
|
||||
const SET_ENTITY_DATA_PACKET = 0x27;
|
||||
const SET_ENTITY_MOTION_PACKET = 0x28;
|
||||
const SET_ENTITY_LINK_PACKET = 0x29;
|
||||
const SET_HEALTH_PACKET = 0x2a;
|
||||
const SET_SPAWN_POSITION_PACKET = 0x2b;
|
||||
const ANIMATE_PACKET = 0x2c;
|
||||
const RESPAWN_PACKET = 0x2d;
|
||||
const DROP_ITEM_PACKET = 0x2e;
|
||||
const INVENTORY_ACTION_PACKET = 0x2f;
|
||||
const CONTAINER_OPEN_PACKET = 0x30;
|
||||
const CONTAINER_CLOSE_PACKET = 0x31;
|
||||
const CONTAINER_SET_SLOT_PACKET = 0x32;
|
||||
const CONTAINER_SET_DATA_PACKET = 0x33;
|
||||
const CONTAINER_SET_CONTENT_PACKET = 0x34;
|
||||
const CRAFTING_DATA_PACKET = 0x35;
|
||||
const CRAFTING_EVENT_PACKET = 0x36;
|
||||
const ADVENTURE_SETTINGS_PACKET = 0x37;
|
||||
const BLOCK_ENTITY_DATA_PACKET = 0x38;
|
||||
const PLAYER_INPUT_PACKET = 0x39;
|
||||
const FULL_CHUNK_DATA_PACKET = 0x3a;
|
||||
const SET_COMMANDS_ENABLED_PACKET = 0x3b;
|
||||
const SET_DIFFICULTY_PACKET = 0x3c;
|
||||
const CHANGE_DIMENSION_PACKET = 0x3d;
|
||||
const SET_PLAYER_GAME_TYPE_PACKET = 0x3e;
|
||||
const PLAYER_LIST_PACKET = 0x3f;
|
||||
const SIMPLE_EVENT_PACKET = 0x40;
|
||||
const EVENT_PACKET = 0x41; //TelemetryEventPacket
|
||||
const SPAWN_EXPERIENCE_ORB_PACKET = 0x42;
|
||||
const CLIENTBOUND_MAP_ITEM_DATA_PACKET = 0x43; //MapItemDataPacket
|
||||
@ -116,12 +116,15 @@ interface ProtocolInfo{
|
||||
const COMMAND_STEP_PACKET = 0x4f;
|
||||
const COMMAND_BLOCK_UPDATE_PACKET = 0x50;
|
||||
const UPDATE_TRADE_PACKET = 0x51;
|
||||
const RESOURCE_PACK_DATA_INFO_PACKET = 0x52;
|
||||
const RESOURCE_PACK_CHUNK_DATA_PACKET = 0x53;
|
||||
const RESOURCE_PACK_CHUNK_REQUEST_PACKET = 0x54;
|
||||
const TRANSFER_PACKET = 0x55;
|
||||
const PLAY_SOUND_PACKET = 0x56;
|
||||
const STOP_SOUND_PACKET = 0x57;
|
||||
const SET_TITLE_PACKET = 0x58;
|
||||
const UPDATE_EQUIP_PACKET = 0x52;
|
||||
const RESOURCE_PACK_DATA_INFO_PACKET = 0x53;
|
||||
const RESOURCE_PACK_CHUNK_DATA_PACKET = 0x54;
|
||||
const RESOURCE_PACK_CHUNK_REQUEST_PACKET = 0x55;
|
||||
const TRANSFER_PACKET = 0x56;
|
||||
const PLAY_SOUND_PACKET = 0x57;
|
||||
const STOP_SOUND_PACKET = 0x58;
|
||||
const SET_TITLE_PACKET = 0x59;
|
||||
const ADD_BEHAVIOR_TREE_PACKET = 0x5a;
|
||||
const STRUCTURE_BLOCK_UPDATE_PACKET = 0x5b;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user