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

@@ -31,6 +31,11 @@ public class PlayerDeathEvent extends EntityDeathEvent {
this.deathMessage = deathMessage;
}
@Override
public Player getEntity() {
return (Player) entity;
}
/**
* Set the death message that will appear to everyone on the server.
*