Package net.minecraft.world
Class RaycastContext
java.lang.Object
net.minecraft.world.RaycastContext
public class RaycastContext extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RaycastContext.FluidHandling
static interface
RaycastContext.ShapeProvider
static class
RaycastContext.ShapeType
-
Field Summary
Fields Modifier and Type Field Description private Vec3d
end
private ShapeContext
entityPosition
private RaycastContext.FluidHandling
fluid
private RaycastContext.ShapeType
shapeType
private Vec3d
start
-
Constructor Summary
Constructors Constructor Description RaycastContext(Vec3d start, Vec3d end, RaycastContext.ShapeType shapeType, RaycastContext.FluidHandling fluidHandling, Entity entity)
-
Method Summary
Modifier and Type Method Description VoxelShape
getBlockShape(BlockState state, BlockView world, BlockPos pos)
Vec3d
getEnd()
VoxelShape
getFluidShape(FluidState state, BlockView world, BlockPos pos)
Vec3d
getStart()
-
Field Details
-
start
-
end
-
shapeType
-
fluid
-
entityPosition
-
-
Constructor Details
-
RaycastContext
public RaycastContext(Vec3d start, Vec3d end, RaycastContext.ShapeType shapeType, RaycastContext.FluidHandling fluidHandling, Entity entity)
-
-
Method Details
-
getEnd
-
getStart
-
getBlockShape
-
getFluidShape
-