|
| | __construct ($x=0, $y=0, $z=0, Level $level=null) |
| |
| | getLevel () |
| |
| | setLevel (Level $level=null) |
| |
| | getSide ($side, $step=1) |
| |
| | __toString () |
| |
| | __construct ($x=0, $y=0, $z=0, Level $level=null) |
| |
| | asPosition () |
| |
| | add ($x, $y=0, $z=0) |
| |
| | getLevel () |
| |
| | setLevel (Level $level=null) |
| |
| | isValid () |
| |
| | getSide ($side, $step=1) |
| |
| | __toString () |
| |
| | setComponents ($x, $y, $z) |
| |
| | fromObjectAdd (Vector3 $pos, $x, $y, $z) |
| |
| | __construct ($x=0, $y=0, $z=0) |
| |
| | getX () |
| |
| | getY () |
| |
| | getZ () |
| |
| | getFloorX () |
| |
| | getFloorY () |
| |
| | getFloorZ () |
| |
| | getRight () |
| |
| | getUp () |
| |
| | getForward () |
| |
| | getSouth () |
| |
| | getWest () |
| |
| | add ($x, $y=0, $z=0) |
| |
| | subtract ($x=0, $y=0, $z=0) |
| |
| | multiply ($number) |
| |
| | divide ($number) |
| |
| | ceil () |
| |
| | floor () |
| |
| | round () |
| |
| | abs () |
| |
| | getSide ($side, $step=1) |
| |
| | asVector3 () |
| |
| | distance (Vector3 $pos) |
| |
| | distanceSquared (Vector3 $pos) |
| |
| | maxPlainDistance ($x=0, $z=0) |
| |
| | length () |
| |
| | lengthSquared () |
| |
| | normalize () |
| |
| | dot (Vector3 $v) |
| |
| | cross (Vector3 $v) |
| |
| | equals (Vector3 $v) |
| |
| | getIntermediateWithXValue (Vector3 $v, $x) |
| |
| | getIntermediateWithYValue (Vector3 $v, $y) |
| |
| | getIntermediateWithZValue (Vector3 $v, $z) |
| |
| | setComponents ($x, $y, $z) |
| |
| | fromObjectAdd (Vector3 $pos, $x, $y, $z) |
| |
| | __toString () |
| |
◆ __construct()
| __construct |
( |
|
$x = 0, |
|
|
|
$y = 0, |
|
|
|
$z = 0, |
|
|
Level |
$level = null |
|
) |
| |
- Parameters
-
| int | $x | |
| int | $y | |
| int | $z | |
| Level | $level | |
41 $this->levelId = (
$level !== null ?
$level->getId() : -1);
◆ __toString()
- Returns
- string
97 return "Weak" . parent::__toString();
◆ fromObject()
- Parameters
-
| Vector3 | $pos | |
| Level | null | $level | |
- Returns
- WeakPosition
51 return new WeakPosition($pos->x, $pos->y, $pos->z,
$level);
◆ getLevel()
◆ getSide()
| getSide |
( |
|
$side, |
|
|
|
$step = 1 |
|
) |
| |
Returns a side Vector
- Parameters
-
- Returns
- WeakPosition
- Exceptions
-
◆ setLevel()
| setLevel |
( |
Level |
$level = null | ) |
|
- Parameters
-
- Returns
- $this
- Exceptions
-
70 throw new \InvalidArgumentException(
"Specified level has been unloaded and cannot be used");
73 $this->levelId = (
$level !== null ?
$level->getId() : -1);
◆ $levelId
The documentation for this class was generated from the following file:
- src/pocketmine/level/WeakPosition.php