From ce2e0ba37a3867147d1ee1461aa647e5c68d2d0f Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 27 Jun 2020 11:08:59 +1000 Subject: [PATCH] SPIGOT-5853: Add DragonBattle#generateEndPortal() By: Parker Hawke --- .../src/main/java/org/bukkit/boss/DragonBattle.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/boss/DragonBattle.java b/paper-api/src/main/java/org/bukkit/boss/DragonBattle.java index 678ac49a77..927dcc9ac2 100644 --- a/paper-api/src/main/java/org/bukkit/boss/DragonBattle.java +++ b/paper-api/src/main/java/org/bukkit/boss/DragonBattle.java @@ -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. *