protocol 27, added player spawn events after death from new protocol, added EntityEvent constants

This commit is contained in:
Shoghi Cervantes
2015-05-28 14:19:00 +02:00
parent 51062940c5
commit 9a2170d296
5 changed files with 34 additions and 6 deletions

View File

@ -25,6 +25,23 @@ namespace pocketmine\network\protocol;
class EntityEventPacket extends DataPacket{
const HURT_ANIMATION = 2;
const DEATH_ANIMATION = 3;
const TAME_FAIL = 6;
const TAME_SUCCESS = 7;
const SHAKE_WET = 8;
const USE_ITEM = 9;
const EAT_GRASS_ANIMATION = 10;
const FISH_HOOK_BUBBLE = 11;
const FISH_HOOK_POSITION = 12;
const FISH_HOOK_HOOK = 13;
const FISH_HOOK_TEASE = 14;
const SQUID_INK_CLOUD = 15;
const AMBIENT_SOUND = 16;
const RESPAWN = 17;
public static $pool = [];
public static $next = 0;

View File

@ -30,7 +30,7 @@ interface Info{
/**
* Actual Minecraft: PE protocol version
*/
const CURRENT_PROTOCOL = 26;
const CURRENT_PROTOCOL = 27;
const LOGIN_PACKET = 0x82;
const PLAY_STATUS_PACKET = 0x83;