@Override public void readFromNBT(NBTTagCompound nbt) { super.readFromNBT(nbt); NBTTagList list = nbt.getTagList("Items", Constants.NBT.TAG_COMPOUND); this.brewingItemStacks = new ItemStack[this.getSizeInventory()]; for (int i = 0; i < list.tagCount(); ++i) { NBTTagCompound tag = list.getCompoundTagAt(i); byte slotID = tag.getByte("Slot"); this.setInventorySlotContents(slotID, ItemStack.loadItemStackFromNBT(tag)); } this.brewTime = nbt.getShort("BrewTime"); }