public class JailZoneManager
extends java.lang.Object
Constructor and Description |
---|
JailZoneManager() |
Modifier and Type | Method and Description |
---|---|
static JailZone |
findNearestJail(Location loc)
Find nearest jail zone to specified location.
|
static JailZone |
findNearestJail(Location loc,
java.lang.String ignore)
Find nearest jail zone to specified location with ignoring specified jail
|
static JailZone |
getJail(Location loc)
Return jail that contains location.
|
static java.lang.Boolean |
isInsideJail(Location loc)
Check if location is inside any jail
|
public static JailZone findNearestJail(Location loc)
public static JailZone findNearestJail(Location loc, java.lang.String ignore)
ignore
- name of the jail zone that will be ignored while searchingpublic static JailZone getJail(Location loc)
public static java.lang.Boolean isInsideJail(Location loc)