mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
20 lines
546 B
Java
20 lines
546 B
Java
package com.intellectualcrafters.plot.object;
|
|
|
|
public class RegionWrapper {
|
|
public final int minX;
|
|
public final int maxX;
|
|
public final int minZ;
|
|
public final int maxZ;
|
|
|
|
public RegionWrapper(final int minX, final int maxX, final int minZ, final int maxZ) {
|
|
this.maxX = maxX;
|
|
this.minX = minX;
|
|
this.maxZ = maxZ;
|
|
this.minZ = minZ;
|
|
}
|
|
|
|
public boolean isIn(final int x, final int z) {
|
|
return ((x >= this.minX) && (x <= this.maxX) && (z >= this.minZ) && (z <= this.maxZ));
|
|
}
|
|
}
|