mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
protocol 27, added player spawn events after death from new protocol, added EntityEvent constants
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user