public void readFromNBT(NBTTagCompound tag) {
super.readFromNBT(tag);
_inventories = new ItemStack[getSizeInventory()];
if(tag.hasKey("Items")) {
NBTTagList tagList = tag.getTagList("Items", 10);
for(int i = 0; i < tagList.tagCount(); i++) {
NBTTagCompound itemTag = (NBTTagCompound)tagList.getCompoundTagAt(i);
int slot = itemTag.getByte("Slot") & 0xff;
if(slot >= 0 && slot <= _inventories.length) {
ItemStack itemStack = new ItemStack((Block)null,0,0);
itemStack.readFromNBT(itemTag);