From 77f13f9b4c329fd2769c828a41f6ee450b2986f3 Mon Sep 17 00:00:00 2001 From: AlexTheCoder Date: Sat, 29 Apr 2017 00:27:18 -0400 Subject: [PATCH] Slightly improve boss worldevent api --- .../game/clans/clans/worldevent/boss/BossDeathEvent.java | 6 +++--- .../game/clans/clans/worldevent/boss/BossWorldEvent.java | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/boss/BossDeathEvent.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/boss/BossDeathEvent.java index cca1ab01c..caf9109b3 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/boss/BossDeathEvent.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/boss/BossDeathEvent.java @@ -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; } diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/boss/BossWorldEvent.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/boss/BossWorldEvent.java index 9ccb4739c..fcc770b43 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/boss/BossWorldEvent.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/boss/BossWorldEvent.java @@ -40,6 +40,8 @@ public abstract class BossWorldEvent> extends WorldEv _teleportTo = teleportFrom.stream().map(vec -> vec.toLocation(centerLocation.getWorld())).collect(Collectors.toList()); } + public abstract String getDeathMessage(); + public T getBossCreature() { return _boss;