/* (non-Javadoc)
* @see de.beimax.simplespleef.util.Cuboid#setSerializedBlocks(de.beimax.simplespleef.util.SerializableBlockData[][][])
*/
@Override
public void setSerializedBlocks(SerializableBlockData[][][] blockData) {
BlockVector max = region.getMaximumPoint();
BlockVector min = region.getMinimumPoint();
LinkedList<Chunk> chunksChanged = new LinkedList<Chunk>();
final int[] coords = {(min.getBlockX()<max.getBlockX()?min.getBlockX():max.getBlockX()),
(min.getBlockY()<max.getBlockY()?min.getBlockY():max.getBlockY()),
(min.getBlockZ()<max.getBlockZ()?min.getBlockZ():max.getBlockZ())};
for (int x = 0; x < blockData.length; x++)
for (int y = 0; y < blockData[0].length; y++)
for (int z = 0; z < blockData[0][0].length; z++) {
if (this.region.contains(coords[0] + x, coords[1] + y, coords[2] + z)) { // only restore, if within the region