I'm creating a plug-in that clears an area of space for a game arena. I'd like to save all the blocks I cleared for the arena, so that my changes can be reverted. If there's no previous novel method for that, what information do I need to gather to fully record the state of a block? Would I only need the MaterialData and Type-ID?
Be sure to get the damage value in case it's colored wool. (or is the type the damage?) And of course the location.
If you're going to remove chests or other ContainerBlocks you'd need to save their content too, for signs you'd need to save the text, for CreatureSpawners you'd need to save their creature type.