From 8abb2aa9e9d3b58ab19547b99981fb2c35017564 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 26 Jan 2017 11:16:31 +1100 Subject: [PATCH] SPIGOT-3037: WorldBorder#isInside(Location) By: md_5 --- paper-api/src/main/java/org/bukkit/WorldBorder.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/WorldBorder.java b/paper-api/src/main/java/org/bukkit/WorldBorder.java index 55c8983bd8..4dc18edc72 100644 --- a/paper-api/src/main/java/org/bukkit/WorldBorder.java +++ b/paper-api/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); }