SPIGOT-5853: Add DragonBattle#generateEndPortal()

This commit is contained in:
Parker Hawke 2020-06-27 11:08:59 +10:00 committed by md_5
parent e4db04aeb2
commit 3284612a10
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -33,11 +33,20 @@ public interface DragonBattle {
*
* This location will be at the center of the base (bottom) of the portal.
*
* @return the end portal location
* @return the end portal location or null if not generated
*/
@NotNull
@Nullable
public Location getEndPortalLocation();
/**
* Generate the end portal.
*
* @param withPortals whether or not end portal blocks should be generated
*
* @return true if generated, false if already present
*/
public boolean generateEndPortal(boolean withPortals);
/**
* Check whether or not the first dragon has been killed already.
*