Position
Extends pocketmine\math\Vector3
Properties
$world
php
public ?\pocketmine\world\World $worldMethods
__construct()
php
public function __construct(float|int $x, float|int $y, float|int $z, ?\pocketmine\world\World $world)__toString()
php
public function __toString()asPosition()
php
public function asPosition() : \pocketmine\world\PositionReturn a Position instance
equals()
php
public function equals(\pocketmine\math\Vector3 $v) : boolfromObject()
php
public static function fromObject(\pocketmine\math\Vector3 $pos, ?\pocketmine\world\World $world)getSide()
php
public function getSide(int $side, int $step = 1)Returns a side Vector
getWorld()
php
public function getWorld() : \pocketmine\world\WorldReturns the position's world if valid. Throws an error if the world is unexpectedly invalid.
isValid()
php
public function isValid() : boolChecks if this object has a valid reference to a loaded world
