PHP Class pocketmine\level\Position

Inheritance: extends pocketmine\math\Vector3
Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Méthodes publiques

Свойство Type Description
$level Level

Méthodes publiques

Méthode Description
__construct ( integer $x, integer $y, integer $z, Level $level = null )
__toString ( )
add ( $x, $y, $z )
fromObject ( Vector3 $pos, Level $level = null )
fromObjectAdd ( Vector3 $pos, $x, $y, $z )
getLevel ( ) : Level
getSide ( integer $side, integer $step = 1 ) : Position Returns a side Vector
isValid ( ) : boolean Checks if this object has a valid reference to a Level
setComponents ( $x, $y, $z ) : Position
setLevel ( Level $level )

Method Details

__construct() public méthode

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

__toString() public méthode

public __toString ( )

add() public méthode

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

fromObject() public static méthode

public static fromObject ( Vector3 $pos, Level $level = null )
$pos pocketmine\math\Vector3
$level Level

fromObjectAdd() public méthode

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

getLevel() public méthode

public getLevel ( ) : Level
Résultat Level

getSide() public méthode

Returns a side Vector
public getSide ( integer $side, integer $step = 1 ) : Position
$side integer
$step integer
Résultat Position

isValid() public méthode

Checks if this object has a valid reference to a Level
public isValid ( ) : boolean
Résultat boolean

setComponents() public méthode

public setComponents ( $x, $y, $z ) : Position
$x
$y
$z
Résultat Position

setLevel() public méthode

public setLevel ( Level $level )
$level Level

Property Details

$level public_oe property

public Level,pocketmine\level $level
Résultat Level