public interface DragonBattle
| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
DragonBattle.RespawnPhase
Represents a phase in the dragon respawn process. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
generateEndPortal(boolean withPortals)
Generate the end portal. 
 | 
@NotNull BossBar | 
getBossBar()
Get the boss bar to be displayed for this dragon battle. 
 | 
@Nullable EnderDragon | 
getEnderDragon()
Get the  
EnderDragon active in this battle. | 
@Nullable Location | 
getEndPortalLocation()
Get the location of the end portal. 
 | 
@NotNull DragonBattle.RespawnPhase | 
getRespawnPhase()
Get this battle's current respawn phase. 
 | 
boolean | 
hasBeenPreviouslyKilled()
Check whether or not the first dragon has been killed already. 
 | 
void | 
initiateRespawn()
Initiate a respawn sequence to summon the dragon as though a player has
 placed 4 end crystals on the portal. 
 | 
void | 
resetCrystals()
Reset the crystals located on the obsidian pillars (remove their beam
 targets and invulnerability). 
 | 
boolean | 
setRespawnPhase(@NotNull DragonBattle.RespawnPhase phase)
Set the dragon's respawn phase. 
 | 
@Nullable @Nullable EnderDragon getEnderDragon()
EnderDragon active in this battle.
 Will return null if the dragon has been slain.@NotNull @NotNull BossBar getBossBar()
@Nullable @Nullable Location getEndPortalLocation()
boolean generateEndPortal(boolean withPortals)
withPortals - whether or not end portal blocks should be generatedboolean hasBeenPreviouslyKilled()
void initiateRespawn()
@NotNull @NotNull DragonBattle.RespawnPhase getRespawnPhase()
boolean setRespawnPhase(@NotNull @NotNull DragonBattle.RespawnPhase phase)
phase - the phase to setinitiateRespawn()void resetCrystals()
Copyright © 2022. All rights reserved.