Commits

md_5 authored 5fa44fc1a10
SPIGOT-1776: Replace BossBar.hide/show with visibility.
No tags

src/main/java/org/bukkit/boss/BossBar.java

Modified
107 107 */
108 108 void removeAll();
109 109
110 110 /**
111 111 * Returns all players viewing this boss bar
112 112 *
113 113 * @return a immutable list of players
114 114 */
115 115 List<Player> getPlayers();
116 116
117 + /**
118 + * Set if the boss bar is displayed to attached players.
119 + *
120 + * @param visible visible status
121 + */
122 + void setVisible(boolean visible);
123 +
124 + /**
125 + * Return if the boss bar is displayed to attached players.
126 + *
127 + * @return visible status
128 + */
129 + boolean isVisible();
130 +
117 131 /**
118 132 * Shows the previously hidden boss bar to all attached players
133 + * @deprecated {@link #setVisible(boolean)}
119 134 */
135 + @Deprecated
120 136 void show();
121 137
122 138 /**
123 139 * Hides this boss bar from all attached players
140 + * @deprecated {@link #setVisible(boolean)}
124 141 */
142 + @Deprecated
125 143 void hide();
126 144 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut