mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Added sneaking, sprinting
This commit is contained in:
@ -27,6 +27,21 @@ namespace pocketmine\network\protocol;
|
||||
class PlayerActionPacket extends DataPacket{
|
||||
const NETWORK_ID = Info::PLAYER_ACTION_PACKET;
|
||||
|
||||
const ACTION_START_BREAK = 0;
|
||||
const ACTION_ABORT_BREAK = 1;
|
||||
const ACTION_STOP_BREAK = 2;
|
||||
|
||||
|
||||
const ACTION_RELEASE_ITEM = 5;
|
||||
const ACTION_STOP_SLEEPING = 6;
|
||||
const ACTION_RESPAWN = 7;
|
||||
const ACTION_JUMP = 8;
|
||||
const ACTION_START_SPRINT = 9;
|
||||
const ACTION_STOP_SPRINT = 10;
|
||||
const ACTION_START_SNEAK = 11;
|
||||
const ACTION_STOP_SNEAK = 12;
|
||||
const ACTION_DIMENSION_CHANGE = 13;
|
||||
|
||||
public $eid;
|
||||
public $action;
|
||||
public $x;
|
||||
|
Reference in New Issue
Block a user