Class RayHelper

java.lang.Object
com.petrolpark.util.RayHelper

public class RayHelper extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    getBlockReach(net.minecraft.world.entity.Entity entity)
     
    static double
    getEntityReach(net.minecraft.world.entity.Entity entity)
     
    static int
    getHit(List<net.minecraft.world.phys.AABB> boxes, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end)
     
    static net.minecraft.world.phys.HitResult
    getHitResult(List<net.minecraft.world.phys.AABB> customBoxes, net.minecraft.world.entity.Entity entity, float partialTicks, boolean hitFluids)
     
    static net.minecraft.world.phys.HitResult
    getHitResult(net.minecraft.world.entity.Entity entity, float partialTicks, boolean hitFluids)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RayHelper

      public RayHelper()
  • Method Details

    • getHitResult

      public static net.minecraft.world.phys.HitResult getHitResult(net.minecraft.world.entity.Entity entity, float partialTicks, boolean hitFluids)
    • getHitResult

      public static net.minecraft.world.phys.HitResult getHitResult(List<net.minecraft.world.phys.AABB> customBoxes, net.minecraft.world.entity.Entity entity, float partialTicks, boolean hitFluids)
    • getBlockReach

      public static double getBlockReach(net.minecraft.world.entity.Entity entity)
    • getEntityReach

      public static double getEntityReach(net.minecraft.world.entity.Entity entity)
    • getHit

      public static int getHit(List<net.minecraft.world.phys.AABB> boxes, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end)
      Parameters:
      boxes -
      start -
      end -
      Returns:
      The index of the box which was hit, or -1 if there was no hit