Interface SuddenDeathDragon
public interface SuddenDeathDragon
Represents a Sudden Death Dragon spawned by the Gen Tier system.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()Check if this dragon is still activegetArena()The arena which this Dragon is active inThe Bukkit entity used to power this dragonThe location the dragon is currently targetinggetTeam()The Dragon's Teamvoidremove()Removes this dragon anf ends the corresponding tasksvoidsetDragonTarget(Entity entity) Change the entity which the Dragon is targetingvoidsetDragonTarget(Location location) Change the location the Dragon is targeting
-
Method Details
-
getDragon
EnderDragon getDragon()The Bukkit entity used to power this dragon- Returns:
- a Bukkit EnderDragon
-
getArena
Arena getArena()The arena which this Dragon is active in- Returns:
- the Arena the Dragon is playing in
-
getTeam
Team getTeam()The Dragon's Team- Returns:
- The team the dragon is playing for
-
getDragonTargetLocation
Location getDragonTargetLocation()The location the dragon is currently targeting- Returns:
- the dragons taget location
-
setDragonTarget
Change the location the Dragon is targeting- Parameters:
location- where the dragon should target
-
setDragonTarget
Change the entity which the Dragon is targeting- Parameters:
entity- who the dragon should target
-
remove
void remove()Removes this dragon anf ends the corresponding tasks -
exists
boolean exists()Check if this dragon is still active- Returns:
trueif the dragon is still active,falseotherwise
-