diff --git a/src/main/java/world/bentobox/bentobox/database/objects/Island.java b/src/main/java/world/bentobox/bentobox/database/objects/Island.java index c29a27472..fc9c6073d 100644 --- a/src/main/java/world/bentobox/bentobox/database/objects/Island.java +++ b/src/main/java/world/bentobox/bentobox/database/objects/Island.java @@ -315,6 +315,14 @@ public class Island implements DataObject { return center.getBlockX() - protectionRange; } + /** + * @return the maxProtectedX + * @since 1.5.2 + */ + public int getMaxProtectedX() { + return center.getBlockX() + protectionRange; + } + /** * @return the minProtectedZ */ @@ -322,6 +330,14 @@ public class Island implements DataObject { return center.getBlockZ() - protectionRange; } + /** + * @return the maxProtectedZ + * @since 1.5.2 + */ + public int getMaxProtectedZ() { + return center.getBlockZ() + protectionRange; + } + /** * @return the minX */ @@ -329,6 +345,14 @@ public class Island implements DataObject { return center.getBlockX() - range; } + /** + * @return the maxX + * @since 1.5.2 + */ + public int getMaxX() { + return center.getBlockX() + range; + } + /** * @return the minZ */ @@ -336,6 +360,14 @@ public class Island implements DataObject { return center.getBlockZ() - range; } + /** + * @return the maxZ + * @since 1.5.2 + */ + public int getMaxZ() { + return center.getBlockZ() + range; + } + /** * @return the island display name. Might be {@code null} if none is set. */