diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/WorldBorder.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/WorldBorder.java b/src/main/java/org/bukkit/WorldBorder.java index 55c8983b..4dc18edc 100644 --- a/src/main/java/org/bukkit/WorldBorder.java +++ b/src/main/java/org/bukkit/WorldBorder.java @@ -106,4 +106,12 @@ public interface WorldBorder { * @param distance The distance in blocks. (The default is 5 blocks.) */ public void setWarningDistance(int distance); + + /** + * Check if the specified location is inside this border. + * + * @param location the location to check + * @return if this location is inside the border or not + */ + public boolean isInside(Location location); } |