Class VecUtils
java.lang.Object
com.zenith.feature.pathfinder.util.VecUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.cloudburstmc.math.vector.Vector3dstatic doubledistanceToCenter(BlockPos pos, double x, double y, double z) Gets the distance from the specified position to the assumed center of the specified block position.static doubleentityDistanceToCenter(Entity entity, BlockPos pos) static doubleentityDistanceToCenter(Bot player, BlockPos pos) static doubleentityFlatDistanceToCenter(Bot player, BlockPos pos) static org.cloudburstmc.math.vector.Vector3d
-
Constructor Details
-
VecUtils
public VecUtils()
-
-
Method Details
-
calculateBlockCenter
-
getBlockPosCenter
-
distanceToCenter
Gets the distance from the specified position to the assumed center of the specified block position.- Parameters:
pos- The block positionx- The x posy- The y posz- The z pos- Returns:
- The distance from the assumed block center to the position
- See Also:
-
entityDistanceToCenter
-
entityDistanceToCenter
-
entityFlatDistanceToCenter
-