Package net.minecraft.util.math
Class BlockRayTraceResult
java.lang.Object
net.minecraft.util.math.RayTraceResult
net.minecraft.util.math.BlockRayTraceResult
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.util.math.RayTraceResult
RayTraceResult.Type
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockPos
private final Direction
private final boolean
private final boolean
Fields inherited from class net.minecraft.util.math.RayTraceResult
hitInfo, location, subHit
-
Constructor Summary
ModifierConstructorDescriptionprivate
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
Modifier and TypeMethodDescriptiongetType()
boolean
isInside()
static BlockRayTraceResult
withDirection
(Direction p_216351_1_) withPosition
(BlockPos p_237485_1_) Methods inherited from class net.minecraft.util.math.RayTraceResult
distanceTo, getLocation
-
Field Details
-
direction
-
blockPos
-
miss
private final boolean miss -
inside
private final boolean inside
-
-
Constructor Details
-
BlockRayTraceResult
-
BlockRayTraceResult
-
-
Method Details
-
miss
public static BlockRayTraceResult miss(Vector3d p_216352_0_, Direction p_216352_1_, BlockPos p_216352_2_) -
withDirection
-
withPosition
-
getBlockPos
-
getDirection
-
getType
- Specified by:
getType
in classRayTraceResult
-
isInside
public boolean isInside()
-