mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Add manhattan method for having one block.
This commit is contained in:
parent
5c29859e8b
commit
3f78497fde
@ -382,6 +382,18 @@ public class TrigUtil {
|
||||
return yawDiff;
|
||||
}
|
||||
|
||||
/**
|
||||
* Manhattan distance.
|
||||
* @param x1
|
||||
* @param y1
|
||||
* @param z1
|
||||
* @param block
|
||||
* @return
|
||||
*/
|
||||
public static int manhattan(final int x1, final int y1, final int z1, final Block block) {
|
||||
return manhattan(x1, y1, z1, block.getX(), block.getY(), block.getZ());
|
||||
}
|
||||
|
||||
/**
|
||||
* Manhattan distance (steps along the sides of an orthogonal grid).
|
||||
* @param x1
|
||||
|
Loading…
Reference in New Issue
Block a user