Package net.minecraft.util.math
Class BlockRayTraceResult
- java.lang.Object
-
- net.minecraft.util.math.RayTraceResult
-
- net.minecraft.util.math.BlockRayTraceResult
-
public class BlockRayTraceResult extends RayTraceResult
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.util.math.RayTraceResult
RayTraceResult.Type
-
-
Constructor Summary
Constructors Modifier Constructor Description private
BlockRayTraceResult(boolean p_i51187_1_, Vector3d p_i51187_2_, Direction p_i51187_3_, BlockPos p_i51187_4_, boolean p_i51187_5_)
BlockRayTraceResult(Vector3d p_i51186_1_, Direction p_i51186_2_, BlockPos p_i51186_3_, boolean p_i51186_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockPos
getBlockPos()
Direction
getDirection()
RayTraceResult.Type
getType()
boolean
isInside()
static BlockRayTraceResult
miss(Vector3d p_216352_0_, Direction p_216352_1_, BlockPos p_216352_2_)
BlockRayTraceResult
withDirection(Direction p_216351_1_)
BlockRayTraceResult
withPosition(BlockPos p_237485_1_)
-
Methods inherited from class net.minecraft.util.math.RayTraceResult
distanceTo, getLocation
-
-
-
-
Method Detail
-
miss
public static BlockRayTraceResult miss(Vector3d p_216352_0_, Direction p_216352_1_, BlockPos p_216352_2_)
-
withDirection
public BlockRayTraceResult withDirection(Direction p_216351_1_)
-
withPosition
public BlockRayTraceResult withPosition(BlockPos p_237485_1_)
-
getBlockPos
public BlockPos getBlockPos()
-
getDirection
public Direction getDirection()
-
getType
public RayTraceResult.Type getType()
- Specified by:
getType
in classRayTraceResult
-
isInside
public boolean isInside()
-
-