Package de.delinkedde.mobarenareborn.hud
Klasse Sidebar
java.lang.Object
de.delinkedde.mobarenareborn.hud.Sidebar
A flicker-free sidebar scoreboard shared by all players of a round.
Each line is backed by a fixed, invisible entry whose text is supplied by a team prefix, so
updating a line only changes the prefix and never re-registers the entry (which would flicker).
The same Scoreboard is shown to every viewer.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidRestores the scoreboard the player had before the sidebar was shown, falling back to the server's main scoreboard.voidReplaces the sidebar lines, top to bottom.voidShows this sidebar to a player, remembering their previous scoreboard (for example one owned by a tab-list or stats plugin) so it can be restored afterwards.
-
Konstruktordetails
-
Sidebar
public Sidebar(@NotNull @NotNull net.kyori.adventure.text.Component title) - Parameter:
title- the sidebar title
-
-
Methodendetails
-
setLines
Replaces the sidebar lines, top to bottom.- Parameter:
lines- the line components
-
showTo
Shows this sidebar to a player, remembering their previous scoreboard (for example one owned by a tab-list or stats plugin) so it can be restored afterwards.- Parameter:
player- the player
-
hideFrom
Restores the scoreboard the player had before the sidebar was shown, falling back to the server's main scoreboard.- Parameter:
player- the player
-