Add some constants to AnimatePacket

This commit is contained in:
Dylan K. Taylor
2017-07-31 16:03:34 +01:00
parent 17be06a56d
commit 0b47324fe3
3 changed files with 11 additions and 2 deletions

View File

@ -31,9 +31,14 @@ use pocketmine\network\mcpe\NetworkSession;
class AnimatePacket extends DataPacket{
const NETWORK_ID = ProtocolInfo::ANIMATE_PACKET;
const ACTION_SWING_ARM = 1;
const ACTION_STOP_SLEEP = 3;
const ACTION_CRITICAL_HIT = 4;
public $action;
public $entityRuntimeId;
public $float; //TODO (Boat rowing time?)
public $float = 0.0; //TODO (Boat rowing time?)
public function decodePayload(){
$this->action = $this->getVarInt();