mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
SPIGOT-1776: Replace BossBar.hide/show with visibility.
This commit is contained in:
parent
249c5f0680
commit
d6a61e3e5d
11
nms-patches/BossBattleServer.patch
Normal file
11
nms-patches/BossBattleServer.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/net/minecraft/server/BossBattleServer.java
|
||||||
|
+++ b/net/minecraft/server/BossBattleServer.java
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
|
||||||
|
private final Set<EntityPlayer> h = Sets.newHashSet();
|
||||||
|
private final Set<EntityPlayer> i;
|
||||||
|
- private boolean j;
|
||||||
|
+ public boolean j; // PAIL: rename / public
|
||||||
|
|
||||||
|
public BossBattleServer(IChatBaseComponent ichatbasecomponent, BossBattle.BarColor bossbattle_barcolor, BossBattle.BarStyle bossbattle_barstyle) {
|
||||||
|
super(MathHelper.a(), ichatbasecomponent, bossbattle_barcolor, bossbattle_barstyle);
|
@ -146,6 +146,16 @@ public class CraftBossBar implements BossBar {
|
|||||||
return players.build();
|
return players.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setVisible(boolean visible) {
|
||||||
|
handle.setVisible(visible);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isVisible() {
|
||||||
|
return handle.j;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void show() {
|
public void show() {
|
||||||
handle.setVisible(true);
|
handle.setVisible(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user