From 5fa44fc1a10ad8b3efca62ef0429aadce253c8bc Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 6 Mar 2016 09:55:12 +1100 Subject: SPIGOT-1776: Replace BossBar.hide/show with visibility. --- src/main/java/org/bukkit/boss/BossBar.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/main/java/org') 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 @@ -114,13 +114,31 @@ public interface BossBar { */ List 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(); } -- cgit v1.2.3