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 Summary
Modifier and TypeMethodDescriptionTheStatsView.Filtersconfiguration for filtering statistics displayed withStatsView.StatsInitContexts.@NotNull com.thecsdev.commonmc.api.client.gui.panel.TPanelElementgetPanel()TheTPanelElementonto which the statistics GUI is to be initialized.@NotNull com.thecsdev.commonmc.api.stats.IStatsProvidergetStats()TheMcbsStatsinstance holding the statistics data.@NotNull McbsEditorFileTabgetTab()TheMcbsEditorFileTabinstance of the currently initializing view.
-
Method Details
-
getPanel
@NotNull @NotNull com.thecsdev.commonmc.api.client.gui.panel.TPanelElement getPanel()TheTPanelElementonto which the statistics GUI is to be initialized. -
getFilters
TheStatsView.Filtersconfiguration for filtering statistics displayed withStatsView.StatsInitContexts. -
getStats
@NotNull @NotNull com.thecsdev.commonmc.api.stats.IStatsProvider getStats()TheMcbsStatsinstance 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 willthrow! -
getTab
TheMcbsEditorFileTabinstance of the currently initializing view.- Since:
- 5.2.0
-