Interface SidebarContributor

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SidebarContributor
Adjusts sidebars before Zentrix shows them: adds, removes or rewrites lines, or replaces the title.

Called on the main thread on every sidebar update of every player - the lobby sidebar and each state of a match - so it must be quick. A contributor that throws has its changes discarded for that update and the next contributor sees the sidebar as it was.

Since:
1.8.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contribute(@NotNull SidebarRender render)
    Changes one sidebar about to be shown.
  • Method Details

    • contribute

      void contribute(@NotNull @NotNull SidebarRender render)
      Changes one sidebar about to be shown.