From 30b43035e76b20ffb526d0bd6ce1914f7082acb5 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 6 Mar 2016 09:55:12 +1100 Subject: [PATCH] SPIGOT-1776: Replace BossBar.hide/show with visibility. By: md_5 --- .../main/java/org/bukkit/boss/BossBar.java | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/boss/BossBar.java b/paper-api/src/main/java/org/bukkit/boss/BossBar.java index bf472a7631..effc329511 100644 --- a/paper-api/src/main/java/org/bukkit/boss/BossBar.java +++ b/paper-api/src/main/java/org/bukkit/boss/BossBar.java @@ -115,12 +115,30 @@ public interface BossBar { List 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(); /** * Hides this boss bar from all attached players + * @deprecated {@link #setVisible(boolean)} */ + @Deprecated void hide(); }