mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-03 08:39:09 +00:00
[CLASS UPDATE]Added #isSameTile to Calculations class
This commit is contained in:
@@ -223,4 +223,15 @@ public class Calculations {
|
||||
return pathDistanceBetween(Players.getMyPlayer().getLocation(), tile, isObject);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares Coordinate data from the first and second tile data.
|
||||
*
|
||||
* @param first First tile.
|
||||
* @param second Second tile.
|
||||
* @return True if Coordinate data from first and second tiles match.
|
||||
*/
|
||||
public static boolean isSameTile(Tile first, Tile second) {
|
||||
return first.getX() == second.getX() && first.getY() == second.getY() && first.getPlane() == second.getPlane();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user