Package net.minecraft.util.math
Class RayTraceContext
java.lang.Object
net.minecraft.util.math.RayTraceContext
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RayTraceContext.BlockMode
private final ISelectionContext
private final RayTraceContext.FluidMode
private final Vector3d
private final Vector3d
-
Constructor Summary
ConstructorDescriptionRayTraceContext
(Vector3d p_i50009_1_, Vector3d p_i50009_2_, RayTraceContext.BlockMode p_i50009_3_, RayTraceContext.FluidMode p_i50009_4_, Entity p_i50009_5_) -
Method Summary
Modifier and TypeMethodDescriptiongetBlockShape
(BlockState p_222251_1_, IBlockReader p_222251_2_, BlockPos p_222251_3_) getFluidShape
(FluidState p_222252_1_, IBlockReader p_222252_2_, BlockPos p_222252_3_) getFrom()
getTo()
-
Field Details
-
from
-
to
-
block
-
fluid
-
collisionContext
-
-
Constructor Details
-
RayTraceContext
public RayTraceContext(Vector3d p_i50009_1_, Vector3d p_i50009_2_, RayTraceContext.BlockMode p_i50009_3_, RayTraceContext.FluidMode p_i50009_4_, @Nullable Entity p_i50009_5_)
-
-
Method Details
-
getTo
-
getFrom
-
getBlockShape
public VoxelShape getBlockShape(BlockState p_222251_1_, IBlockReader p_222251_2_, BlockPos p_222251_3_) -
getFluidShape
public VoxelShape getFluidShape(FluidState p_222252_1_, IBlockReader p_222252_2_, BlockPos p_222252_3_)
-