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)); } }