mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Fixed some lines indented with 4 spaces rather than tabs
This commit is contained in:
@ -25,25 +25,25 @@ use pocketmine\math\Vector3;
|
||||
use pocketmine\network\protocol\LevelEventPacket;
|
||||
|
||||
class GenericSound extends Sound{
|
||||
|
||||
|
||||
public function __construct(Vector3 $pos, $id, $pitch = 0){
|
||||
parent::__construct($pos->x, $pos->y, $pos->z);
|
||||
$this->id = (int) $id;
|
||||
$this->pitch = (float) $pitch * 1000;
|
||||
}
|
||||
|
||||
|
||||
protected $pitch = 0;
|
||||
protected $id;
|
||||
|
||||
|
||||
public function getPitch(){
|
||||
return $this->pitch / 1000;
|
||||
}
|
||||
|
||||
|
||||
public function setPitch($pitch){
|
||||
$this->pitch = (float) $pitch * 1000;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function encode(){
|
||||
$pk = new LevelEventPacket;
|
||||
$pk->evid = $this->id;
|
||||
@ -51,7 +51,7 @@ class GenericSound extends Sound{
|
||||
$pk->y = $this->y;
|
||||
$pk->z = $this->z;
|
||||
$pk->data = (int) $this->pitch;
|
||||
|
||||
|
||||
return $pk;
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ use pocketmine\math\Vector3;
|
||||
use pocketmine\network\protocol\DataPacket;
|
||||
|
||||
abstract class Sound extends Vector3{
|
||||
|
||||
|
||||
/**
|
||||
* @return DataPacket|DataPacket[]
|
||||
*/
|
||||
|
Reference in New Issue
Block a user