mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-04 22:14:40 +01:00
30 lines
946 B
Diff
30 lines
946 B
Diff
--- a/net/minecraft/server/BossBattleCustom.java
|
|
+++ b/net/minecraft/server/BossBattleCustom.java
|
|
@@ -6,12 +6,27 @@
|
|
import java.util.Set;
|
|
import java.util.UUID;
|
|
|
|
+// CraftBukkit start
|
|
+import org.bukkit.boss.KeyedBossBar;
|
|
+import org.bukkit.craftbukkit.boss.CraftKeyedBossbar;
|
|
+// CraftBukkit end
|
|
+
|
|
public class BossBattleCustom extends BossBattleServer {
|
|
|
|
private final MinecraftKey h;
|
|
private final Set<UUID> i = Sets.newHashSet();
|
|
private int j;
|
|
private int k = 100;
|
|
+ // CraftBukkit start
|
|
+ private KeyedBossBar bossBar;
|
|
+
|
|
+ public KeyedBossBar getBukkitEntity() {
|
|
+ if (bossBar == null) {
|
|
+ bossBar = new CraftKeyedBossbar(this);
|
|
+ }
|
|
+ return bossBar;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
|
|
public BossBattleCustom(MinecraftKey minecraftkey, IChatBaseComponent ichatbasecomponent) {
|
|
super(ichatbasecomponent, BossBattle.BarColor.WHITE, BossBattle.BarStyle.PROGRESS);
|