Class RayTracer

java.lang.Object
codechicken.lib.raytracer.RayTracer

public class RayTracer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.phys.Vec3
    getCorrectedHeadVec(net.minecraft.world.entity.player.Player player)
     
    static net.minecraft.world.phys.Vec3
    getEndVec(net.minecraft.world.entity.player.Player player)
     
    static net.minecraft.world.phys.Vec3
    getEndVec(net.minecraft.world.entity.player.Player player, double reach)
     
    static net.minecraft.world.phys.Vec3
    getStartVec(net.minecraft.world.entity.player.Player player)
     
    static net.minecraft.world.phys.BlockHitResult
    retrace(net.minecraft.world.entity.player.Player player)
     
    static net.minecraft.world.phys.BlockHitResult
    retrace(net.minecraft.world.entity.player.Player player, double reach, net.minecraft.world.level.ClipContext.Block blockMode)
     
    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)
     
    static net.minecraft.world.phys.BlockHitResult
    retrace(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.ClipContext.Block blockMode)
     
    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)
     
    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)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)