public class BlockRayTraceResult extends RayTraceResult
RayTraceResult.Type
Modifier and Type | Field and Description |
---|---|
private Direction |
face |
private boolean |
inside |
private boolean |
isMiss |
private BlockPos |
pos |
hitInfo, hitResult, subHit
Modifier | Constructor and Description |
---|---|
private |
BlockRayTraceResult(boolean isMissIn,
Vec3d hitVec,
Direction faceIn,
BlockPos posIn,
boolean isInside) |
|
BlockRayTraceResult(Vec3d hitVec,
Direction faceIn,
BlockPos posIn,
boolean isInside) |
Modifier and Type | Method and Description |
---|---|
static BlockRayTraceResult |
createMiss(Vec3d hitVec,
Direction faceIn,
BlockPos posIn) |
Direction |
getFace() |
BlockPos |
getPos() |
RayTraceResult.Type |
getType() |
boolean |
isInside() |
BlockRayTraceResult |
withFace(Direction newFace) |
getHitVec
private final Direction face
private final BlockPos pos
private final boolean isMiss
private final boolean inside
public BlockRayTraceResult(Vec3d hitVec, Direction faceIn, BlockPos posIn, boolean isInside)
public static BlockRayTraceResult createMiss(Vec3d hitVec, Direction faceIn, BlockPos posIn)
public BlockRayTraceResult withFace(Direction newFace)
public BlockPos getPos()
public Direction getFace()
public RayTraceResult.Type getType()
getType
in class RayTraceResult
public boolean isInside()