mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 03:21:48 +00:00
Add new field to UseItemPacket
This commit is contained in:
parent
ebd2830770
commit
28c3a882f8
@ -30,6 +30,7 @@ class UseItemPacket extends DataPacket{
|
|||||||
public $x;
|
public $x;
|
||||||
public $y;
|
public $y;
|
||||||
public $z;
|
public $z;
|
||||||
|
public $blockId;
|
||||||
public $face;
|
public $face;
|
||||||
public $item;
|
public $item;
|
||||||
public $fx;
|
public $fx;
|
||||||
@ -42,6 +43,7 @@ class UseItemPacket extends DataPacket{
|
|||||||
|
|
||||||
public function decode(){
|
public function decode(){
|
||||||
$this->getBlockCoords($this->x, $this->y, $this->z);
|
$this->getBlockCoords($this->x, $this->y, $this->z);
|
||||||
|
$this->blockId = $this->getUnsignedVarInt();
|
||||||
$this->face = $this->getVarInt();
|
$this->face = $this->getVarInt();
|
||||||
$this->getVector3f($this->fx, $this->fy, $this->fz);
|
$this->getVector3f($this->fx, $this->fy, $this->fz);
|
||||||
$this->getVector3f($this->posX, $this->posY, $this->posZ);
|
$this->getVector3f($this->posX, $this->posY, $this->posZ);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user