public class RayTraceResult
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RayTraceResult.Type |
Modifier and Type | Field and Description |
---|---|
Entity |
entityHit |
java.lang.Object |
hitInfo
Used to add extra hit info
|
Vec3d |
hitVec |
EnumFacing |
sideHit |
int |
subHit
Used to determine what sub-segment is hit
|
RayTraceResult.Type |
typeOfHit |
Constructor and Description |
---|
RayTraceResult(Entity entityIn) |
RayTraceResult(Entity entityHitIn,
Vec3d hitVecIn) |
RayTraceResult(RayTraceResult.Type typeIn,
Vec3d hitVecIn,
EnumFacing sideHitIn,
BlockPos blockPosIn) |
RayTraceResult(Vec3d hitVecIn,
EnumFacing sideHitIn) |
RayTraceResult(Vec3d hitVecIn,
EnumFacing sideHitIn,
BlockPos blockPosIn) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
getBlockPos() |
java.lang.String |
toString() |
public int subHit
public java.lang.Object hitInfo
public RayTraceResult.Type typeOfHit
public EnumFacing sideHit
public Vec3d hitVec
public Entity entityHit
public RayTraceResult(Vec3d hitVecIn, EnumFacing sideHitIn, BlockPos blockPosIn)
public RayTraceResult(Vec3d hitVecIn, EnumFacing sideHitIn)
public RayTraceResult(Entity entityIn)
public RayTraceResult(RayTraceResult.Type typeIn, Vec3d hitVecIn, EnumFacing sideHitIn, BlockPos blockPosIn)
public BlockPos getBlockPos()
public java.lang.String toString()
toString
in class java.lang.Object