forked from SteamWar/SteamWar
Start rebuilt
This commit is contained in:
@@ -154,6 +154,14 @@ public interface Region {
|
||||
return true;
|
||||
}
|
||||
|
||||
default boolean inRegion(int x, int z, boolean extension) {
|
||||
Point minPoint = getMinPoint(extension);
|
||||
Point maxPoint = getMaxPoint(extension);
|
||||
if (x < minPoint.getX() || x > maxPoint.getX()) return false;
|
||||
if (z < minPoint.getZ() || z > maxPoint.getZ()) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
default Clipboard copy(boolean extension) {
|
||||
return FlatteningWrapper.impl.copy(getMinPoint(extension), getMaxPoint(extension), getCopyPoint());
|
||||
|
||||
@@ -32,6 +32,8 @@ public interface RegionSystem {
|
||||
|
||||
RegionSystem INSTANCE = init();
|
||||
|
||||
UUID GLOBAL_REGION_ID = new UUID(0, 0);
|
||||
|
||||
/**
|
||||
* Loads and initializes the Regions and anything that should be loaded on startup.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user