Class MonstersHuntedStatsTab
java.lang.Object
io.github.thecsdev.betterstats.api.client.registry.StatsTab
io.github.thecsdev.betterstats.client.gui.stats.tabs.MobStatsTab
io.github.thecsdev.betterstats.client.gui.stats.tabs.MonstersHuntedStatsTab
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.thecsdev.betterstats.api.client.registry.StatsTab
StatsTab.FiltersInitContext, StatsTab.StatsInitContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal net.minecraft.text.Text
getName()
Returns the name of thisStatsTab
.
ThisText
will be rendered on the GUI to indicate the tab's name.protected final AtomicInteger
getPageFilter
(StatFilterSettings filters) Returns theAtomicInteger
that represents the "page" filter value.getPredicate
(StatFilterSettings filterSettings) final void
initFilters
(StatsTab.FiltersInitContext initContext) Invoked when aStatFiltersPanel
GUI is initializing for a givenStatsTab
.protected void
initPageChooser
(StatsTab.StatsInitContext initContext, int totalItemCount, int itemsPerPage) Initializes aPageChooserPanel
.protected final void
processWidget
(MobStatWidget widget) Methods inherited from class io.github.thecsdev.betterstats.client.gui.stats.tabs.MobStatsTab
getDefaultGroupFilter, initExtraFilters, initStats, initStats
Methods inherited from class io.github.thecsdev.betterstats.api.client.registry.StatsTab
getId, isAvailable
-
Constructor Details
-
MonstersHuntedStatsTab
public MonstersHuntedStatsTab()
-
-
Method Details
-
getName
public final net.minecraft.text.Text getName()Description copied from class:StatsTab
Returns the name of thisStatsTab
.
ThisText
will be rendered on the GUI to indicate the tab's name.- Overrides:
getName
in classMobStatsTab
-
processWidget
- Overrides:
processWidget
in classMobStatsTab
-
getPredicate
- Overrides:
getPredicate
in classMobStatsTab
-
initFilters
Description copied from class:StatsTab
Invoked when aStatFiltersPanel
GUI is initializing for a givenStatsTab
.Use this to initialize the
StatFilterSettings
GUI.- Overrides:
initFilters
in classStatsTab
- Parameters:
initContext
- TheStatsTab.FiltersInitContext
.
-
getPageFilter
Returns theAtomicInteger
that represents the "page" filter value.- Parameters:
filters
- TheStatFilterSettings
.
-
initPageChooser
protected void initPageChooser(StatsTab.StatsInitContext initContext, int totalItemCount, int itemsPerPage) Initializes aPageChooserPanel
.- Parameters:
initContext
- TheStatsTab.StatsInitContext
.totalItemCount
- The total number of items present.itemsPerPage
- The maximum number of items to be displayed per page.
-