MinecraftForge/MinecraftForge — pull request #212 by SanAndreasP (2012-10-16 14:26:14+00:00)
Title: Dragon-proof block hook

This is a hook I've made for blocks which adds the abillity to make custom blocks indestructible for the Ender Dragon like Obsidian, End Stone and Bedrock.
The hook adds the overridable method isDragonProof in in the Block class which takes the World and the XYZ coordinates as parameter, so you can use metadata or TileEntities to determine what this method should return.
Also I've edited the destroyBlocksInAABB() method in the EntityDragon class so that it uses this hook.

I hope it's the right way to do this :D