183184185186187188189190191192193
protected NBTTagCompound writeToNBT(NBTTagCompound destination) { ReactantStack stack; for(int i = 0; i < tankNames.length; i++) { stack = tanks[i]; if(stack != null) { destination.setTag(tankNames[i], stack.writeToNBT(new NBTTagCompound())); } } return destination; }