Fixed bug where blocks would not retain their items after re-entering the world

Added the writeToNBT and readFromNBT methods