Random small stuff

This commit is contained in:
Noah van der Aa
2024-12-14 14:31:00 +01:00
parent 017359bc0f
commit 729c6e5369
7 changed files with 52 additions and 64 deletions

View File

@@ -0,0 +1,19 @@
--- a/net/minecraft/server/bossevents/CustomBossEvent.java
+++ b/net/minecraft/server/bossevents/CustomBossEvent.java
@@ -23,6 +_,16 @@
private final Set<UUID> players = Sets.newHashSet();
private int value;
private int max = 100;
+ // CraftBukkit start
+ private org.bukkit.boss.KeyedBossBar bossBar;
+
+ public org.bukkit.boss.KeyedBossBar getBukkitEntity() {
+ if (this.bossBar == null) {
+ this.bossBar = new org.bukkit.craftbukkit.boss.CraftKeyedBossbar(this);
+ }
+ return this.bossBar;
+ }
+ // CraftBukkit end
public CustomBossEvent(ResourceLocation id, Component name) {
super(name, BossEvent.BossBarColor.WHITE, BossEvent.BossBarOverlay.PROGRESS);