mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
More default packet fields
This commit is contained in:
parent
26577d9d5b
commit
138fb88431
@ -35,9 +35,9 @@ class AddItemEntityPacket extends DataPacket{
|
||||
public $x;
|
||||
public $y;
|
||||
public $z;
|
||||
public $speedX;
|
||||
public $speedY;
|
||||
public $speedZ;
|
||||
public $speedX = 0.0;
|
||||
public $speedY = 0.0;
|
||||
public $speedZ = 0.0;
|
||||
public $metadata = [];
|
||||
|
||||
public function decode(){
|
||||
|
@ -23,6 +23,7 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\network\mcpe\NetworkSession;
|
||||
|
||||
class AddPlayerPacket extends DataPacket{
|
||||
@ -35,12 +36,13 @@ class AddPlayerPacket extends DataPacket{
|
||||
public $x;
|
||||
public $y;
|
||||
public $z;
|
||||
public $speedX;
|
||||
public $speedY;
|
||||
public $speedZ;
|
||||
public $pitch;
|
||||
public $headYaw;
|
||||
public $yaw;
|
||||
public $speedX = 0.0;
|
||||
public $speedY = 0.0;
|
||||
public $speedZ = 0.0;
|
||||
public $pitch = 0.0;
|
||||
public $headYaw = null; //TODO
|
||||
public $yaw = 0.0;
|
||||
/** @var Item */
|
||||
public $item;
|
||||
public $metadata = [];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user