#965: Add DragonBattle#setPreviouslyKilled

By: DaFeist <56165444+dafeist-github@users.noreply.github.com>
This commit is contained in:
Bukkit/Spigot 2024-01-17 18:23:32 +11:00
parent 7b30278054
commit e0cee662c2

View File

@ -56,6 +56,17 @@ public interface DragonBattle {
*/
public boolean hasBeenPreviouslyKilled();
/**
* Sets whether the first dragon has been killed already.
* <br>
* If the dragon has not previously been killed, a portal will be generated
* when it is finally killed.
*
* @param previouslyKilled true if the dragon has been killed before, false
* otherwise
*/
public void setPreviouslyKilled(boolean previouslyKilled);
/**
* Try to initiate a respawn sequence to summon the dragon as though a player has
* placed 4 end crystals on the portal.