Package com.andrei1058.spigot.sidebar
Class SidebarManager
java.lang.Object
com.andrei1058.spigot.sidebar.SidebarManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSidebar(SidebarLine title, @NotNull Collection<SidebarLine> lines, Collection<PlaceholderProvider> placeholderProviders) Create a new sidebar.static SidebarManagerstatic @Nullable SidebarManagerinit()Initialize sidebar manager.voidsendHeaderFooter(org.bukkit.entity.Player player, TabHeaderFooter headerFooter) voidsendHeaderFooter(org.bukkit.entity.Player player, String header, String footer) Set a user header and footer in TAB.static voidsetInstance(SidebarManager instance) voidsetPapiSupport(PAPISupport papiSupport) voidsetSidebarProvider(SidebarProvider sidebarProvider)
-
Constructor Details
-
SidebarManager
-
SidebarManager
- Throws:
InstantiationException
-
-
Method Details
-
init
Initialize sidebar manager. This will detect your server version. -
createSidebar
public Sidebar createSidebar(SidebarLine title, @NotNull @NotNull Collection<SidebarLine> lines, Collection<PlaceholderProvider> placeholderProviders) Create a new sidebar.- Parameters:
title- scoreboard title.lines- scoreboard lines.placeholderProviders- placeholders.- Returns:
- sb instance.
-
getPapiSupport
-
setPapiSupport
-
getSidebarProvider
-
setSidebarProvider
-
getInstance
-
setInstance
-