Interface StatsView.StatsInitContext

Enclosing class:
StatsView

@NonExtendable public static interface StatsView.StatsInitContext
The initialization context for when a StatsView's "statistics" GUI is initializing. Use this to create your own statistics GUI.
  • Method Details

    • getPanel

      @NotNull @NotNull com.thecsdev.commonmc.api.client.gui.panel.TPanelElement getPanel()
      The TPanelElement onto which the statistics GUI is to be initialized.
    • getFilters

      @NotNull StatsView.Filters getFilters()
      The StatsView.Filters configuration for filtering statistics displayed with StatsView.StatsInitContexts.
    • getStats

      @NotNull @NotNull com.thecsdev.commonmc.api.stats.IStatsProvider getStats()
      The McbsStats instance holding the statistics data. Use this to visualize the statistics on the GUI.

      Important API note:
      Intended to be read-only! Attempts to set stat values may and likely will throw!

    • getTab

      @NotNull @NotNull McbsEditorFileTab getTab()
      The McbsEditorFileTab instance of the currently initializing view.
      Since:
      5.2.0