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 double
    getBlockReachDistance(net.minecraft.world.entity.player.Player player)
    Deprecated.
    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 net.minecraft.world.phys.BlockHitResult
    retraceBlock(net.minecraft.world.level.BlockGetter level, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos)
     

    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

      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)