Package net.minecraft.util.math
Class RayTraceContext
- java.lang.Object
-
- net.minecraft.util.math.RayTraceContext
-
public class RayTraceContext extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RayTraceContext.BlockMode
static class
RayTraceContext.FluidMode
static interface
RayTraceContext.IVoxelProvider
-
Field Summary
Fields Modifier and Type Field Description private RayTraceContext.BlockMode
block
private ISelectionContext
collisionContext
private RayTraceContext.FluidMode
fluid
private Vector3d
from
private Vector3d
to
-
Constructor Summary
Constructors Constructor Description RayTraceContext(Vector3d p_i50009_1_, Vector3d p_i50009_2_, RayTraceContext.BlockMode p_i50009_3_, RayTraceContext.FluidMode p_i50009_4_, Entity p_i50009_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoxelShape
getBlockShape(BlockState p_222251_1_, IBlockReader p_222251_2_, BlockPos p_222251_3_)
VoxelShape
getFluidShape(FluidState p_222252_1_, IBlockReader p_222252_2_, BlockPos p_222252_3_)
Vector3d
getFrom()
Vector3d
getTo()
-
-
-
Field Detail
-
from
private final Vector3d from
-
to
private final Vector3d to
-
block
private final RayTraceContext.BlockMode block
-
fluid
private final RayTraceContext.FluidMode fluid
-
collisionContext
private final ISelectionContext collisionContext
-
-
Constructor Detail
-
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 Detail
-
getTo
public Vector3d getTo()
-
getFrom
public Vector3d 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_)
-
-