Slightly improve boss worldevent api
This commit is contained in:
parent
a17b0c95bf
commit
77f13f9b4c
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user