Package de.delinkedde.mobarenareborn.hud
Klasse ArenaHud
java.lang.Object
de.delinkedde.mobarenareborn.hud.ArenaHud
The in-round heads-up display: a shared boss bar plus per-wave titles.
During a wave the boss bar is red and shows the wave number and the number of mobs left, with the bar filling as mobs are defeated. During the safe phase it turns green and counts down to the next wave. A title announces each new wave.
One instance exists per running session. Players are added as boss-bar viewers with
show(Player) and removed with hide(Player).
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidRemoves the boss bar and sidebar from a player.voidintermission(int secondsRemaining, int totalSeconds, int nextWave, int playersAlive) Updates the boss bar to reflect the safe-phase countdown.voidsetKillLines(List<String> killLines) Sets the per-player kill lines appended to the sidebar (MiniMessage, best killer first).voidAdds a player as a viewer of the boss bar and sidebar.voidwave(int wave, int mobsRemaining, int waveTotal, int playersAlive) voidwaveTitle(@NotNull Collection<? extends Player> players, int wave) Shows the wave-start title to the given players.
-
Konstruktordetails
-
ArenaHud
public ArenaHud()
-
-
Methodendetails
-
show
Adds a player as a viewer of the boss bar and sidebar.- Parameter:
player- the player
-
hide
Removes the boss bar and sidebar from a player.- Parameter:
player- the player
-
setKillLines
Sets the per-player kill lines appended to the sidebar (MiniMessage, best killer first).- Parameter:
killLines- the formatted lines
-
wave
public void wave(int wave, int mobsRemaining, int waveTotal, int playersAlive) -
intermission
public void intermission(int secondsRemaining, int totalSeconds, int nextWave, int playersAlive) Updates the boss bar to reflect the safe-phase countdown.- Parameter:
secondsRemaining- seconds left until the next wavetotalSeconds- the full length of the safe phasenextWave- the upcoming wave numberplayersAlive- the number of players currently in the round
-
waveTitle
Shows the wave-start title to the given players.- Parameter:
players- the players to show the title towave- the wave number
-