diff options
author | md_5 <git@md-5.net> | 2016-03-06 09:55:12 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-06 09:55:12 +1100 |
commit | 5fa44fc1a10ad8b3efca62ef0429aadce253c8bc (patch) | |
tree | a8d28064eb092fd157c25cc80217bc8f0c81bb32 /src/main | |
parent | 94e06dd4ee9c655f04a8b6630a30964694d4b524 (diff) | |
download | bukkit-5fa44fc1a10ad8b3efca62ef0429aadce253c8bc.tar bukkit-5fa44fc1a10ad8b3efca62ef0429aadce253c8bc.tar.gz bukkit-5fa44fc1a10ad8b3efca62ef0429aadce253c8bc.tar.lz bukkit-5fa44fc1a10ad8b3efca62ef0429aadce253c8bc.tar.xz bukkit-5fa44fc1a10ad8b3efca62ef0429aadce253c8bc.zip |
SPIGOT-1776: Replace BossBar.hide/show with visibility.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/boss/BossBar.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/boss/BossBar.java b/src/main/java/org/bukkit/boss/BossBar.java index bf472a76..effc3295 100644 --- a/src/main/java/org/bukkit/boss/BossBar.java +++ b/src/main/java/org/bukkit/boss/BossBar.java @@ -115,12 +115,30 @@ public interface BossBar { List<Player> getPlayers(); /** + * 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(); /** * Hides this boss bar from all attached players + * @deprecated {@link #setVisible(boolean)} */ + @Deprecated void hide(); } |