Class VecUtils

java.lang.Object
com.zenith.feature.pathfinder.util.VecUtils

public class VecUtils extends Object
  • Constructor Details

    • VecUtils

      public VecUtils()
  • Method Details

    • calculateBlockCenter

      public static org.cloudburstmc.math.vector.Vector3d calculateBlockCenter(BlockPos pos)
    • getBlockPosCenter

      public static org.cloudburstmc.math.vector.Vector3d getBlockPosCenter(BlockPos pos)
    • distanceToCenter

      public static double distanceToCenter(BlockPos pos, double x, double y, double z)
      Gets the distance from the specified position to the assumed center of the specified block position.
      Parameters:
      pos - The block position
      x - The x pos
      y - The y pos
      z - The z pos
      Returns:
      The distance from the assumed block center to the position
      See Also:
    • entityDistanceToCenter

      public static double entityDistanceToCenter(Entity entity, BlockPos pos)
    • entityDistanceToCenter

      public static double entityDistanceToCenter(Bot player, BlockPos pos)
    • entityFlatDistanceToCenter

      public static double entityFlatDistanceToCenter(Bot player, BlockPos pos)