Package com.andrei1058.spigot.sidebar
Class SidebarProvider
java.lang.Object
com.andrei1058.spigot.sidebar.SidebarProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract SidebarObjective
createObjective
(@NotNull WrappedSidebar sidebar, String name, boolean health, SidebarLine title, int type) abstract VersionedTabGroup
createPlayerTab
(WrappedSidebar sidebar, String identifier, SidebarLine prefix, SidebarLine suffix, PlayerTab.PushingRule pushingRule, PlayerTab.NameTagVisibility nameTagVisibility, @Nullable Collection<PlaceholderProvider> placeholders) abstract ScoreLine
createScoreLine
(WrappedSidebar sidebar, SidebarLine line, int score, String color) abstract Sidebar
createSidebar
(SidebarLine title, Collection<SidebarLine> lines, Collection<PlaceholderProvider> placeholderProviders) Create a new sidebar.abstract void
sendHeaderFooter
(org.bukkit.entity.Player player, String header, String footer) abstract void
sendScore
(@NotNull WrappedSidebar sidebar, String playerName, int score)
-
Constructor Details
-
SidebarProvider
public SidebarProvider()
-
-
Method Details
-
createSidebar
public abstract Sidebar createSidebar(SidebarLine title, Collection<SidebarLine> lines, Collection<PlaceholderProvider> placeholderProviders) Create a new sidebar.- Parameters:
title
- scoreboard title.lines
- scoreboard lines.placeholderProviders
- placeholders.- Returns:
- sb instance.
-
createObjective
public abstract SidebarObjective createObjective(@NotNull @NotNull WrappedSidebar sidebar, String name, boolean health, SidebarLine title, int type) -
createScoreLine
public abstract ScoreLine createScoreLine(WrappedSidebar sidebar, SidebarLine line, int score, String color) -
sendScore
public abstract void sendScore(@NotNull @NotNull WrappedSidebar sidebar, String playerName, int score) -
createPlayerTab
public abstract VersionedTabGroup createPlayerTab(WrappedSidebar sidebar, String identifier, SidebarLine prefix, SidebarLine suffix, PlayerTab.PushingRule pushingRule, PlayerTab.NameTagVisibility nameTagVisibility, @Nullable @Nullable Collection<PlaceholderProvider> placeholders)
-