public class BlockRayTraceResult extends RayTraceResult
RayTraceResult.Type
hitInfo, hitResult, subHit
コンストラクタと説明 |
---|
BlockRayTraceResult(Vec3d hitVec,
Direction faceIn,
BlockPos posIn,
boolean isInside) |
修飾子とタイプ | メソッドと説明 |
---|---|
static BlockRayTraceResult |
createMiss(Vec3d hitVec,
Direction faceIn,
BlockPos posIn)
Creates a new BlockRayTraceResult marked as a miss.
|
Direction |
getFace()
Gets the face of the block that was clicked
|
BlockPos |
getPos() |
RayTraceResult.Type |
getType() |
boolean |
isInside()
True if the player's head is inside of a block (used by scaffolding)
|
BlockRayTraceResult |
withFace(Direction newFace)
Creates a new BlockRayTraceResult, with the clicked face replaced with the given one
|
getHitVec
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
クラス内 RayTraceResult
public boolean isInside()