◆ __construct()
◆ fromBlock()
static fromBlock |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$z, |
|
|
|
$side, |
|
|
Vector3 |
$hitVector |
|
) |
| |
|
static |
- Parameters
-
int | $x | |
int | $y | |
int | $z | |
int | $side | |
Vector3 | $hitVector | |
- Returns
- MovingObjectPosition
65 $ob =
new MovingObjectPosition;
◆ fromEntity()
static fromEntity |
( |
Entity |
$entity | ) |
|
|
static |
- Parameters
-
- Returns
- MovingObjectPosition
80 $ob =
new MovingObjectPosition;
82 $ob->entityHit = $entity;
83 $ob->hitVector =
new Vector3($entity->x, $entity->y, $entity->z);
◆ $blockX
◆ $blockY
◆ $blockZ
◆ $entityHit
◆ $hitVector
◆ $sideHit
Which side was hit. If its -1 then it went the full length of the ray trace. Bottom = 0, Top = 1, East = 2, West = 3, North = 4, South = 5.
◆ $typeOfHit
The documentation for this class was generated from the following file:
- src/pocketmine/level/MovingObjectPosition.php