PocketMine
MovingObjectPosition Class Reference

Static Public Member Functions

static fromBlock ($x, $y, $z, $side, Vector3 $hitVector)
 
static fromEntity (Entity $entity)
 

Data Fields

 $typeOfHit
 
 $blockX
 
 $blockY
 
 $blockZ
 
 $sideHit
 
 $hitVector
 
 $entityHit = null
 

Member Function Documentation

static fromBlock (   $x,
  $y,
  $z,
  $side,
Vector3  $hitVector 
)
static
Parameters
int$x
int$y
int$z
int$side
Vector3$hitVector
Returns
MovingObjectPosition
static fromEntity ( Entity  $entity)
static
Parameters
Entity$entity
Returns
MovingObjectPosition

Field Documentation

$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

0 = block, 1 = entity


The documentation for this class was generated from the following file: