mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Added PhpDoc for packet field types and changed float x,y,z to Vector3
This commit is contained in:
@ -49,9 +49,7 @@ class GenericSound extends Sound{
|
||||
public function encode(){
|
||||
$pk = new LevelEventPacket;
|
||||
$pk->evid = $this->id;
|
||||
$pk->x = $this->x;
|
||||
$pk->y = $this->y;
|
||||
$pk->z = $this->z;
|
||||
$pk->position = $this->asVector3();
|
||||
$pk->data = (int) $this->pitch;
|
||||
|
||||
return $pk;
|
||||
|
Reference in New Issue
Block a user