Package codechicken.lib.raytracer
Class RayTracer
java.lang.Object
codechicken.lib.raytracer.RayTracer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublegetBlockReachDistance(net.minecraft.world.entity.player.Player player) Deprecated.static net.minecraft.world.phys.Vec3getCorrectedHeadVec(net.minecraft.world.entity.player.Player player) static net.minecraft.world.phys.Vec3getEndVec(net.minecraft.world.entity.player.Player player) static net.minecraft.world.phys.Vec3getEndVec(net.minecraft.world.entity.player.Player player, double reach) static net.minecraft.world.phys.Vec3getStartVec(net.minecraft.world.entity.player.Player player) static net.minecraft.world.phys.BlockHitResultretrace(net.minecraft.world.entity.player.Player player) static net.minecraft.world.phys.BlockHitResultretrace(net.minecraft.world.entity.player.Player player, double reach, net.minecraft.world.level.ClipContext.Block blockMode) static net.minecraft.world.phys.BlockHitResultretrace(net.minecraft.world.entity.player.Player player, double reach, net.minecraft.world.level.ClipContext.Block blockMode, net.minecraft.world.level.ClipContext.Fluid fluidMode) static net.minecraft.world.phys.BlockHitResultretrace(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.ClipContext.Block blockMode) static net.minecraft.world.phys.BlockHitResultretrace(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.ClipContext.Block blockMode, net.minecraft.world.level.ClipContext.Fluid fluidMode) static net.minecraft.world.phys.BlockHitResultretraceBlock(net.minecraft.world.level.BlockGetter level, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos)
-
Constructor Details
-
RayTracer
public RayTracer()
-
-
Method Details
-
retraceBlock
public static net.minecraft.world.phys.BlockHitResult retraceBlock(net.minecraft.world.level.BlockGetter level, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos) -
retrace
public static net.minecraft.world.phys.BlockHitResult retrace(net.minecraft.world.entity.player.Player player) -
retrace
public static net.minecraft.world.phys.BlockHitResult retrace(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.ClipContext.Block blockMode) -
retrace
public static net.minecraft.world.phys.BlockHitResult retrace(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.ClipContext.Block blockMode, net.minecraft.world.level.ClipContext.Fluid fluidMode) -
retrace
public static net.minecraft.world.phys.BlockHitResult retrace(net.minecraft.world.entity.player.Player player, double reach, net.minecraft.world.level.ClipContext.Block blockMode) -
retrace
public static net.minecraft.world.phys.BlockHitResult retrace(net.minecraft.world.entity.player.Player player, double reach, net.minecraft.world.level.ClipContext.Block blockMode, net.minecraft.world.level.ClipContext.Fluid fluidMode) -
getCorrectedHeadVec
public static net.minecraft.world.phys.Vec3 getCorrectedHeadVec(net.minecraft.world.entity.player.Player player) -
getStartVec
public static net.minecraft.world.phys.Vec3 getStartVec(net.minecraft.world.entity.player.Player player) -
getBlockReachDistance
@Deprecated public static double getBlockReachDistance(net.minecraft.world.entity.player.Player player) Deprecated. -
getEndVec
public static net.minecraft.world.phys.Vec3 getEndVec(net.minecraft.world.entity.player.Player player) -
getEndVec
public static net.minecraft.world.phys.Vec3 getEndVec(net.minecraft.world.entity.player.Player player, double reach)
-