MinecraftForge/MinecraftForge — pull request #721 by ItsMeElConquistador (2013-08-11 08:47:15+00:00)
Title: Added entity read/write NBT event and render living (should)RenderPass event

Added four new events:

EntityEvent.EntityWriteToNBT
EntityEvent.EntityReadFromNBT
RenderLivingEvent.ShouldRenderPass
RenderLivingEvent.RenderPass

ReadFromNBT and WriteToNBT get called after the vanilla functions, so you are able to override already existing NBT tags.

ShouldRenderPass is basically the shouldRenderPass() function in RendererLivingEntity, but instead of returning something you need to set the shouldRenderPass variable to the desired value (-1 to cancel).

RenderPass is called before vanilla does it's render pass, so you can add your own render pass types.