Added Island#getMaxX(), #getMaxZ(), #getMaxProtectedX(), #getMaxProtectedZ()

This commit is contained in:
Florian CUNY 2019-06-13 09:56:24 +02:00
parent 51738df54c
commit 8cb5234a0c

View File

@ -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.
*/