public class RaycastContext extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RaycastContext.FluidHandling |
static interface |
RaycastContext.ShapeProvider |
static class |
RaycastContext.ShapeType |
Modifier and Type | Field and Description |
---|---|
private Vec3d |
end |
private ShapeContext |
entityPosition |
private RaycastContext.FluidHandling |
fluid |
private RaycastContext.ShapeType |
shapeType |
private Vec3d |
start |
Constructor and Description |
---|
RaycastContext(Vec3d start,
Vec3d end,
RaycastContext.ShapeType shapeType,
RaycastContext.FluidHandling fluidHandling,
Entity entity) |
Modifier and Type | Method and Description |
---|---|
VoxelShape |
getBlockShape(BlockState state,
BlockView world,
BlockPos pos) |
Vec3d |
getEnd() |
VoxelShape |
getFluidShape(FluidState state,
BlockView world,
BlockPos pos) |
Vec3d |
getStart() |
private final Vec3d start
private final Vec3d end
private final RaycastContext.ShapeType shapeType
private final RaycastContext.FluidHandling fluid
private final ShapeContext entityPosition
public RaycastContext(Vec3d start, Vec3d end, RaycastContext.ShapeType shapeType, RaycastContext.FluidHandling fluidHandling, Entity entity)
public Vec3d getEnd()
public Vec3d getStart()
public VoxelShape getBlockShape(BlockState state, BlockView world, BlockPos pos)
public VoxelShape getFluidShape(FluidState state, BlockView world, BlockPos pos)