/** * Sets this block change's absolute x coordinate. * * @param x New x coordinate */ public void setX(int x) { setLocation(x, getY(), getZ()); }
/** * Sets this block change's y coordinate * * @param y New y coordinate */ public void setY(int y) { setLocation(getX(), y, getZ()); }
/** * Sets this block change's relative z coordinate. * * @param z New z coordinate */ public void setZ(int z) { setLocation(getX(), getY(), z); }
/** * Sets this block change's absolute Location. * * @param location This block change's new location */ public void setLocation(Location location) { setLocation(location.getBlockX(), location.getBlockY(), location.getBlockZ()); }
public MultiBlockChangeInfo(Location location, WrappedBlockData data) { this.data = data; this.chunk = new ChunkCoordIntPair(location.getBlockX() >> 4, location.getBlockZ() >> 4); this.setLocation(location); }