Skip to content

Commit c7d825a

Browse files
MrHell228Faithcaio
authored andcommitted
Add ServerWorld#dragonFightBossBar()
1 parent 14f3e3f commit c7d825a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/org/spongepowered/api/world/server/ServerWorld.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
*/
2525
package org.spongepowered.api.world.server;
2626

27+
import net.kyori.adventure.bossbar.BossBar;
2728
import org.spongepowered.api.ResourceKey;
2829
import org.spongepowered.api.Server;
2930
import org.spongepowered.api.block.BlockSnapshot;
@@ -243,6 +244,13 @@ default boolean restoreSnapshot(final Vector3i position, final BlockSnapshot sna
243244
*/
244245
Optional<Raid> raidAt(Vector3i blockPosition);
245246

247+
/**
248+
* Gets the {@link BossBar} of the ender dragon fight occurring in this {@link ServerWorld}.
249+
*
250+
* @return The dragon fight boss bar, if present
251+
*/
252+
Optional<BossBar> dragonFightBossBar();
253+
246254
/**
247255
* Gets the {@link ChunkManager} for this world.
248256
*

0 commit comments

Comments
 (0)