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 classRaycastContext.FluidHandlingstatic interfaceRaycastContext.ShapeProviderstatic classRaycastContext.ShapeType -
Field Summary
Fields Modifier and Type Field Description private Vec3dendprivate ShapeContextentityPositionprivate RaycastContext.FluidHandlingfluidprivate RaycastContext.ShapeTypeshapeTypeprivate Vec3dstart -
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 VoxelShapegetBlockShape(BlockState state, BlockView world, BlockPos pos)Vec3dgetEnd()VoxelShapegetFluidShape(FluidState state, BlockView world, BlockPos pos)Vec3dgetStart()
-
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
-