public void readFromNBT (NBTTagCompound tags)
{
layers = tags.getInteger("Layers");
int[] pos = tags.getIntArray("MinPos");
if (pos.length > 2)
minPos = new CoordTuple(pos[0], pos[1], pos[2]);
else
minPos = new CoordTuple(xCoord, yCoord, zCoord);
pos = tags.getIntArray("MaxPos");
if (pos.length > 2)
maxPos = new CoordTuple(pos[0], pos[1], pos[2]);
else
maxPos = new CoordTuple(xCoord, yCoord, zCoord);
maxBlockCapacity = getBlocksPerLayer() * layers;
inventory = new ItemStack[maxBlockCapacity];
super.readFromNBT(tags);