PHP Class pocketmine\level\Location

Inheritance: extends Position
Show file Open project: iTXTech/Genisys Class Usage Examples

Public Properties

Property Type Description
$pitch
$yaw

Public Methods

Method Description
__construct ( integer $x, integer $y, integer $z, float $yaw, float $pitch, Level $level = null )
__toString ( )
add ( $x, $y, $z, $yaw, $pitch )
fromObject ( Vector3 $pos, Level $level = null, float $yaw, float $pitch ) : Location
fromObjectAdd ( Vector3 $pos, $x, $y, $z )
getPitch ( )
getYaw ( )

Method Details

__construct() public method

public __construct ( integer $x, integer $y, integer $z, float $yaw, float $pitch, Level $level = null )
$x integer
$y integer
$z integer
$yaw float
$pitch float
$level Level

__toString() public method

public __toString ( )

add() public method

public add ( $x, $y, $z, $yaw, $pitch )

fromObject() public static method

public static fromObject ( Vector3 $pos, Level $level = null, float $yaw, float $pitch ) : Location
$pos pocketmine\math\Vector3
$level Level default null
$yaw float default 0.0
$pitch float default 0.0
return Location

fromObjectAdd() public method

public fromObjectAdd ( Vector3 $pos, $x, $y, $z )
$pos pocketmine\math\Vector3

getPitch() public method

public getPitch ( )

getYaw() public method

public getYaw ( )

Property Details

$pitch public property

public $pitch

$yaw public property

public $yaw