mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Add some constants to AnimatePacket
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user