Narrowed down the return type of most EntityEvent subclasses for convenience. Addresses BUKKIT-809
This commit is contained in:
@@ -13,6 +13,11 @@ public class ProjectileHitEvent extends EntityEvent {
|
||||
super(projectile);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Projectile getEntity() {
|
||||
return (Projectile) entity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
|
||||
Reference in New Issue
Block a user