Package com.petrolpark.util
Class RayHelper
java.lang.Object
com.petrolpark.util.RayHelper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublegetBlockReach(net.minecraft.world.entity.Entity entity) static doublegetEntityReach(net.minecraft.world.entity.Entity entity) static intgetHit(List<net.minecraft.world.phys.AABB> boxes, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end) static net.minecraft.world.phys.HitResultgetHitResult(List<net.minecraft.world.phys.AABB> customBoxes, net.minecraft.world.entity.Entity entity, float partialTicks, boolean hitFluids) static net.minecraft.world.phys.HitResultgetHitResult(net.minecraft.world.entity.Entity entity, float partialTicks, boolean hitFluids)
-
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
-1if there was no hit
-