mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Location: add native typehints
This commit is contained in:
parent
60a6b4b10d
commit
4b0bf34adb
@ -34,12 +34,7 @@ class Location extends Position{
|
|||||||
/** @var float */
|
/** @var float */
|
||||||
public $pitch;
|
public $pitch;
|
||||||
|
|
||||||
/**
|
public function __construct(float $x = 0, float $y = 0, float $z = 0, float $yaw = 0.0, float $pitch = 0.0, ?World $world = null){
|
||||||
* @param float|int $x
|
|
||||||
* @param float|int $y
|
|
||||||
* @param float|int $z
|
|
||||||
*/
|
|
||||||
public function __construct($x = 0, $y = 0, $z = 0, float $yaw = 0.0, float $pitch = 0.0, ?World $world = null){
|
|
||||||
$this->yaw = $yaw;
|
$this->yaw = $yaw;
|
||||||
$this->pitch = $pitch;
|
$this->pitch = $pitch;
|
||||||
parent::__construct($x, $y, $z, $world);
|
parent::__construct($x, $y, $z, $world);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user