mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
SPIGOT-1776: Replace BossBar.hide/show with visibility.
This commit is contained in:
parent
94e06dd4ee
commit
5fa44fc1a1
1 changed files with 19 additions and 1 deletions
|
@ -115,12 +115,30 @@ public interface BossBar {
|
||||||
List<Player> getPlayers();
|
List<Player> getPlayers();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shows the previously hidden boss bar to all attached players
|
* Set if the boss bar is displayed to attached players.
|
||||||
|
*
|
||||||
|
* @param visible visible status
|
||||||
*/
|
*/
|
||||||
|
void setVisible(boolean visible);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return if the boss bar is displayed to attached players.
|
||||||
|
*
|
||||||
|
* @return visible status
|
||||||
|
*/
|
||||||
|
boolean isVisible();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shows the previously hidden boss bar to all attached players
|
||||||
|
* @deprecated {@link #setVisible(boolean)}
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
void show();
|
void show();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hides this boss bar from all attached players
|
* Hides this boss bar from all attached players
|
||||||
|
* @deprecated {@link #setVisible(boolean)}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
void hide();
|
void hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue