Skip to content

Location ​

class · pocketmine\entity\Location · source

Extends Position

Properties ​

$pitch ​

php
public float $pitch

$yaw ​

php
public float $yaw

Methods ​

__construct() ​

php
public function __construct(float $x, float $y, float $z, ?\pocketmine\world\World $world, float $yaw, float $pitch)

__toString() ​

php
public function __toString()

asLocation() ​

php
public function asLocation() : \pocketmine\entity\Location

Return a Location instance

equals() ​

php
public function equals(\pocketmine\math\Vector3 $v) : bool

fromObject() ​

php
public static function fromObject(\pocketmine\math\Vector3 $pos, ?\pocketmine\world\World $world, float $yaw = 0.0, float $pitch = 0.0)

getPitch() ​

php
public function getPitch() : float

getYaw() ​

php
public function getYaw() : float

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.