Package codechicken.lib.raytracer
Class RayTracer
java.lang.Object
codechicken.lib.raytracer.RayTracer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 @Nullable net.minecraft.world.phys.BlockHitResultretraceBlock(net.minecraft.world.level.BlockGetter level, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos) static @Nullable net.minecraft.world.phys.BlockHitResultretraceBlock(net.minecraft.world.level.BlockGetter level, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, net.minecraft.world.level.ClipContext.Block context)
-
Constructor Details
-
RayTracer
public RayTracer()
-
-
Method Details
-
retraceBlock
@Nullable public static @Nullable net.minecraft.world.phys.BlockHitResult retraceBlock(net.minecraft.world.level.BlockGetter level, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos) -
retraceBlock
@Nullable public static @Nullable net.minecraft.world.phys.BlockHitResult retraceBlock(net.minecraft.world.level.BlockGetter level, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, net.minecraft.world.level.ClipContext.Block context) -
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) -
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)
-