Class ComponentSidebarLayout

java.lang.Object
net.megavex.scoreboardlibrary.api.sidebar.component.ComponentSidebarLayout

public final class ComponentSidebarLayout extends Object
Represents a component sidebar layout that can be applied to a Sidebar.
  • Constructor Details

  • Method Details

    • titleComponent

      @NotNull public @NotNull SidebarComponent titleComponent()
    • linesComponent

      @NotNull public @NotNull SidebarComponent linesComponent()
    • apply

      public void apply(@NotNull @NotNull Sidebar sidebar)
      Applies the title and line components to a sidebar. Call this every time you want to update the sidebar.
      Parameters:
      sidebar - sidebar to apply title and line components to