PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
Info.php
1 <?php
2 
3 /*
4  *
5  * ____ _ _ __ __ _ __ __ ____
6  * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
7  * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
8  * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
9  * |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
10  *
11  * This program is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License as published by
13  * the Free Software Foundation, either version 3 of the License, or
14  * (at your option) any later version.
15  *
16  * @author PocketMine Team
17  * @link http://www.pocketmine.net/
18  *
19  *
20 */
21 
25 namespace pocketmine\network\protocol;
26 
27 
28 interface Info{
29 
33  const CURRENT_PROTOCOL = 20;
34 
35 
36  const LOGIN_PACKET = 0x82;
37  const LOGIN_STATUS_PACKET = 0x83;
38 
39  const MESSAGE_PACKET = 0x85;
40  const SET_TIME_PACKET = 0x86;
41  const START_GAME_PACKET = 0x87;
42  const ADD_MOB_PACKET = 0x88;
43  const ADD_PLAYER_PACKET = 0x89;
44  const REMOVE_PLAYER_PACKET = 0x8a;
45 
46  const ADD_ENTITY_PACKET = 0x8c;
47  const REMOVE_ENTITY_PACKET = 0x8d;
48  const ADD_ITEM_ENTITY_PACKET = 0x8e;
49  const TAKE_ITEM_ENTITY_PACKET = 0x8f;
50  const MOVE_ENTITY_PACKET = 0x90;
51 
52  const ROTATE_HEAD_PACKET = 0x94;
53  const MOVE_PLAYER_PACKET = 0x95;
54  //const PLACE_BLOCK_PACKET = 0x96;
55  const REMOVE_BLOCK_PACKET = 0x97;
56  const UPDATE_BLOCK_PACKET = 0x98;
57  const ADD_PAINTING_PACKET = 0x99;
58  const EXPLODE_PACKET = 0x9a;
59  const LEVEL_EVENT_PACKET = 0x9b;
60  const TILE_EVENT_PACKET = 0x9c;
61  const ENTITY_EVENT_PACKET = 0x9d;
62 
63  const PLAYER_EQUIPMENT_PACKET = 0xa0;
64  const PLAYER_ARMOR_EQUIPMENT_PACKET = 0xa1;
65  const INTERACT_PACKET = 0xa2;
66  const USE_ITEM_PACKET = 0xa3;
67  const PLAYER_ACTION_PACKET = 0xa4;
68 
69  const HURT_ARMOR_PACKET = 0xa6;
70  const SET_ENTITY_DATA_PACKET = 0xa7;
71  const SET_ENTITY_MOTION_PACKET = 0xa8;
72  //const SET_ENTITY_LINK_PACKET = 0xa9;
73  const SET_HEALTH_PACKET = 0xaa;
74  const SET_SPAWN_POSITION_PACKET = 0xab;
75  const ANIMATE_PACKET = 0xac;
76  const RESPAWN_PACKET = 0xad;
77  const SEND_INVENTORY_PACKET = 0xae;
78  const DROP_ITEM_PACKET = 0xaf;
79  const CONTAINER_OPEN_PACKET = 0xb0;
80  const CONTAINER_CLOSE_PACKET = 0xb1;
81  const CONTAINER_SET_SLOT_PACKET = 0xb2;
82  const CONTAINER_SET_DATA_PACKET = 0xb3;
83  const CONTAINER_SET_CONTENT_PACKET = 0xb4;
84  //const CONTAINER_ACK_PACKET = 0xb5;
85  const CHAT_PACKET = 0xb6;
86  const ADVENTURE_SETTINGS_PACKET = 0xb7;
87  const ENTITY_DATA_PACKET = 0xb8;
88  //const PLAYER_INPUT_PACKET = 0xb9;
89  const FULL_CHUNK_DATA_PACKET = 0xba;
90  const UNLOAD_CHUNK_PACKET = 0xbb;
91  const SET_DIFFICULTY_PACKET = 0xbc;
92 
93 }