net.minecraft.world

public class RaycastContext

net.minecraft.world.level.ClipContext
net.minecraft.class_3959
net.minecraft.world.RaycastContext

Field summary

Modifier and TypeField
private final Vec3d
from
field_17553
start
private final Vec3d
to
field_17554
end
private final RaycastContext$ShapeType
block
field_17555
shapeType
private final RaycastContext$FluidHandling
fluid
field_17556
fluid
private final ShapeContext
collisionContext
field_17557
shapeContext

Constructor summary

ModifierConstructor
public (Vec3d start, Vec3d end, RaycastContext$ShapeType shapeType, RaycastContext$FluidHandling fluidHandling, Entity entity)
public (Vec3d start, Vec3d end, RaycastContext$ShapeType shapeType, RaycastContext$FluidHandling fluidHandling, ShapeContext shapeContext)

Method summary

Modifier and TypeMethod
public Vec3d
getTo()
method_17747()
getEnd()
public Vec3d
getFrom()
method_17750()
getStart()
public VoxelShape
getBlockShape(BlockState blockState, BlockGetter level, BlockPos pos)
method_17748(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getBlockShape(BlockState state, BlockView world, BlockPos pos)
public VoxelShape
getFluidShape(FluidState fluidState, BlockGetter level, BlockPos pos)
method_17749(class_3610 arg0, class_1922 arg1, class_2338 arg2)
getFluidShape(FluidState state, BlockView world, BlockPos pos)