mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-22 15:53:49 -07:00
Random small stuff
This commit is contained in:
@@ -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);
|
Reference in New Issue
Block a user