Package dev.deepcore.challenge.ui
Class LobbySidebarCoordinatorService
java.lang.Object
dev.deepcore.challenge.ui.LobbySidebarCoordinatorService
Coordinates lobby sidebar rendering across online players.
-
Constructor Summary
ConstructorsConstructorDescriptionLobbySidebarCoordinatorService(LobbySidebarService lobbySidebarService, WorldClassificationService worldClassificationService, RunUiFormattingService runUiFormattingService) Creates a lobby sidebar coordinator service. -
Method Summary
Modifier and TypeMethodDescriptionvoidrefreshForOnlinePlayers(Iterable<? extends org.bukkit.entity.Player> players, SidebarModel model) Refreshes lobby sidebars for online players using the supplied sidebar model.
-
Constructor Details
-
LobbySidebarCoordinatorService
public LobbySidebarCoordinatorService(LobbySidebarService lobbySidebarService, WorldClassificationService worldClassificationService, RunUiFormattingService runUiFormattingService) Creates a lobby sidebar coordinator service.- Parameters:
lobbySidebarService- sidebar rendering serviceworldClassificationService- world classification helperrunUiFormattingService- run UI formatting helper
-
-
Method Details
-
refreshForOnlinePlayers
public void refreshForOnlinePlayers(Iterable<? extends org.bukkit.entity.Player> players, SidebarModel model) Refreshes lobby sidebars for online players using the supplied sidebar model.- Parameters:
players- online players to refreshmodel- sidebar model snapshot used for rendering
-