mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-12 02:11:39 +01:00
Added Island#getMaxX(), #getMaxZ(), #getMaxProtectedX(), #getMaxProtectedZ()
This commit is contained in:
parent
51738df54c
commit
8cb5234a0c
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user