summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityFireball.java
Commit message (Collapse)AuthorAgeLines
* Updates to all Entities to use getBukkitEntity() any time an event isAndrew Ardill2011-01-18-4/+1
| | | | | raised. Similar update to CraftVehicle and CraftLivingEntity
* created getBukkitEntity() in minecraft.server.EntityAndrew Ardill2011-01-18-0/+5
| | | | | This returns a protected field that is set in the constructor of each minecraft.server.Entity to a new CraftEntity of some specific type.
* Implementation of the EntityDamage*Events.Andrew Ardill2011-01-16-0/+245
Many files were added to enable the correct hooking of these events, and a new event EntityDamageByProjectileEvent. EntityDamageByProjectileEvent adds the ability to get the projectile entity (such as an egg) and also set if the projectile 'bounces'. Only two projectiles currently respond to bouncing, Arrow and Fish - were if the fish bounces it means the fish is not hooked. Bouncing is independent of any damage caused via the event. In addition, the changes to EntityDamageEvent that enable setting post-event damage were implemented in all hooks. Finally, a bug in CraftArrow was fixed, where the constructor was not declared public.