Narrowed down the return type of most EntityEvent subclasses for convenience. Addresses BUKKIT-809

This commit is contained in:
TomyLobo
2012-02-28 04:59:09 -06:00
committed by EvilSeph
parent 6c7fb871c5
commit 2e12e3ec8a
18 changed files with 139 additions and 52 deletions

View File

@@ -13,6 +13,11 @@ public class ProjectileHitEvent extends EntityEvent {
super(projectile);
}
@Override
public Projectile getEntity() {
return (Projectile) entity;
}
@Override
public HandlerList getHandlers() {
return handlers;