Last updated
Represents the result of a raytrace.
readonlyblockPos:BlockPos
The block position the raytrace might have hit.
Remarks
May be null if the raytrace didn't hit a block.
readonlyentityHit:Entity
The entity the raytrace might have hit.
Remarks
May be null if the raytrace didn't hit an entity.
readonlyhitVec:Vec3
The hit vector of the raytrace, can be null.
readonlysideHit:string
The side of the block the raytrace might have hit. Will be a EnumFacing.
Remarks
May be null if the raytrace didn't hit a block.
getHitType():
HitType
Returns
The type of hit that was made. One of: BLOCK, ENTITY, MISS.
Last updated