keepcalm / BukkitForge

The world's first __opensource__ coremod. Also a port of the Bukkit server API to MinecraftForge.
http://www.minecraftforge.net/forum/index.php/topic,3254.0.html
103 stars 60 forks source link

Add support to EntityExplodeEvent of Bukkit #600

Closed steffengy closed 11 years ago

steffengy commented 11 years ago

This adds the support of Bukkits EntityExplodeEvent. The implementation of this feature is a bit tricky, because you can't intercept an exploding Entity in Forge. There are simply no Forge-Events to do this. So you need to modify 2 Vanilla classes, to being able to call this event. The changes are reduced to the minimum and similar to the Bukkit-Implementation. This allows for example WorldGuard to deny TNT explosions.