Slightly improve boss worldevent api

This commit is contained in:
AlexTheCoder 2017-04-29 00:27:18 -04:00
parent a17b0c95bf
commit 77f13f9b4c
2 changed files with 5 additions and 3 deletions

View File

@ -8,16 +8,16 @@ public class BossDeathEvent extends Event
{
private static final HandlerList handlers = new HandlerList();
private final BossWorldEvent _event;
private final BossWorldEvent<?> _event;
private final Location _deathLocation;
public BossDeathEvent(BossWorldEvent event, Location location)
public BossDeathEvent(BossWorldEvent<?> event, Location location)
{
_event = event;
_deathLocation = location;
}
public BossWorldEvent getEvent()
public BossWorldEvent<?> getEvent()
{
return _event;
}

View File

@ -40,6 +40,8 @@ public abstract class BossWorldEvent<T extends EventCreature<?>> extends WorldEv
_teleportTo = teleportFrom.stream().map(vec -> vec.toLocation(centerLocation.getWorld())).collect(Collectors.toList());
}
public abstract String getDeathMessage();
public T getBossCreature()
{
return _boss;