PlotSquared/src/main/java/com/intellectualcrafters/plot/object/RegionWrapper.java

20 lines
546 B
Java
Raw Normal View History

2014-12-28 13:02:30 +01:00
package com.intellectualcrafters.plot.object;
public class RegionWrapper {
public final int minX;
public final int maxX;
public final int minZ;
public final int maxZ;
2015-02-23 02:32:27 +01:00
2015-02-20 07:34:19 +01:00
public RegionWrapper(final int minX, final int maxX, final int minZ, final int maxZ) {
2014-12-28 13:02:30 +01:00
this.maxX = maxX;
this.minX = minX;
this.maxZ = maxZ;
this.minZ = minZ;
}
2015-08-02 21:25:41 +02:00
public boolean isIn(final int x, final int z) {
return ((x >= this.minX) && (x <= this.maxX) && (z >= this.minZ) && (z <= this.maxZ));
}
2014-12-28 13:02:30 +01:00
}