runelite-api/src/main/java/net/runelite/api/coords/WorldArea.java
/**
	 * Determines if this WorldArea is within melee distance of another WorldArea
	 *
	 * @param other The other world area to compare with
	 * @return Returns true if it is in melee distance
	 */
Determines if this WorldArea is within melee distance of another WorldArea
@param other The other world area to compare with
@return Returns true if it is in melee distance
Determines if this WorldArea is within melee distance of another WorldArea @param other The other world area to compare with @return Returns true if it is in melee distance
public boolean isInMeleeDistance(WorldArea other)
	{
		if (other == null || this.getPlane() != other.getPlane())
		{
			return false;
		}
		Point distances = getAxisDistances(other);
		return distances.getX() + distances.getY() == 1;
	}
public boolean isInMeleeDistance ( WorldArea other ) { if ( other == null || this . getPlane ( ) != other . getPlane ( ) ) { return false ; } Point distances = getAxisDistances ( other ) ; return distances . getX ( ) + distances . getY ( ) == 1 ; }
Determines if this WorldArea is within melee distance of another WorldArea
 @param other The other world area to compare with
 @return Returns true if it is in melee distance
Determines if this WorldArea is within melee distance of another WorldArea @param other The other world area to compare with @return Returns true if it is in melee distance