MinecraftForge/MinecraftForge — pull request #58 by CowedOffACliff (2012-05-10 04:48:39+00:00)
Title: Hooks into Entity and EntityLiving

I now have functional hooks into Entity and EntityLiving that should be ready to be patched into the main API. I've run tests to ensure that the API will build with the new code, and I've also run tests in SSP to be sure that everything functions as intended. I haven't tested in SMP due to hardware limitations, but the SMP hooks should function exactly the same as in SSP.

The hook into Entity allows adding new code into the Entity.onEntityUpdate() method; this can be used in some fairly powerful ways.

The hook into EntityLiving allows modifying the EntityLiving.onDeath(DamageSource) method; this provides a means of modifying the death event of subclasses of EntityLiving. The most obvious use is adding drops to existing monsters, but its usefulness isn't limited to that alone.

This is a small provided sample mod to show that the new functionality works. The source is provided and commented, and the provided README briefly states what it does.

http://www.mediafire.com/?52ae6g0n8whvoxe

On another small note; I went ahead and marked the Linux install script as executable, seeing as recently it hadn't been marked as such, and I saw no reason why it should stay that way.

-- CowedOffACliff