Added PhpDoc for packet field types and changed float x,y,z to Vector3

This commit is contained in:
Dylan K. Taylor
2017-08-13 20:02:07 +01:00
parent 6480f7a989
commit 9be1b929a5
99 changed files with 424 additions and 207 deletions

View File

@ -65,10 +65,15 @@ class AdventureSettingsPacket extends DataPacket{
const OPERATOR = 0x20 | self::BITFLAG_SECOND_SET;
const TELEPORT = 0x80 | self::BITFLAG_SECOND_SET;
/** @var int */
public $flags = 0;
/** @var int */
public $commandPermission = self::PERMISSION_NORMAL;
/** @var int */
public $flags2 = -1;
/** @var int */
public $playerPermission = PlayerPermissions::MEMBER;
/** @var int */
public $entityUniqueId; //This is a little-endian long, NOT a var-long. (WTF Mojang)
protected function decodePayload(){