Class StatsViewHunter
java.lang.Object
com.thecsdev.betterstats.api.mcbs.view.statsview.StatsView
com.thecsdev.betterstats.mcbs.view.statsview.SubjectStatsView<com.thecsdev.commonmc.api.stats.util.EntityStats>
com.thecsdev.betterstats.mcbs.view.statsview.StatsViewMobs
com.thecsdev.betterstats.mcbs.view.statsview.StatsViewHunter
- All Implemented Interfaces:
com.thecsdev.commonmc.api.client.gui.widget.TDropdownWidget.Entry
StatsView that displays "Hostile Mobs" statistics.-
Nested Class Summary
Nested classes/interfaces inherited from class StatsViewMobs
StatsViewMobs.GroupBy, StatsViewMobs.SortByNested classes/interfaces inherited from class StatsView
StatsView.Filters, StatsView.FiltersInitContext, StatsView.StatsInitContext -
Field Summary
FieldsFields inherited from class SubjectStatsView
OC_DONE, OC_INPROGRESS -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.network.chat.ComponentReturns the display name of thisStatsView.
ThisComponentwill be shown on the GUI to indicate the view's name.protected @NotNull Predicate<com.thecsdev.commonmc.api.stats.util.EntityStats> getStatsPredicate(@NotNull StatsView.Filters filters) protected final voidpostProcessWidget(@NotNull StatsView.StatsInitContext context, @NotNull com.thecsdev.commonmc.api.client.gui.widget.stats.TEntityStatsWidget widget) Post-processes eachTEntityStatsWidgetafter its creation.Methods inherited from class StatsViewMobs
getStatsGrouper, getStatsSorter, initFilters, initStatsMethods inherited from class StatsView
getDefault
-
Field Details
-
INSTANCE
The main instance of thisClass.
-
-
Method Details
-
getDisplayName
@NotNull public @NotNull net.minecraft.network.chat.Component getDisplayName()Description copied from class:StatsViewReturns the display name of thisStatsView.
ThisComponentwill be shown on the GUI to indicate the view's name.- Specified by:
getDisplayNamein interfacecom.thecsdev.commonmc.api.client.gui.widget.TDropdownWidget.Entry- Overrides:
getDisplayNamein classStatsViewMobs
-
getStatsPredicate
@Virtual @NotNull protected @NotNull Predicate<com.thecsdev.commonmc.api.stats.util.EntityStats> getStatsPredicate(@NotNull @NotNull StatsView.Filters filters) throws NullPointerException Description copied from class:SubjectStatsView- Overrides:
getStatsPredicatein classSubjectStatsView<com.thecsdev.commonmc.api.stats.util.EntityStats>- Parameters:
filters- TheStatsView.Filters.- Throws:
NullPointerException- If the argument isnull.
-
postProcessWidget
protected final void postProcessWidget(@NotNull @NotNull StatsView.StatsInitContext context, @NotNull @NotNull com.thecsdev.commonmc.api.client.gui.widget.stats.TEntityStatsWidget widget) Description copied from class:StatsViewMobsPost-processes eachTEntityStatsWidgetafter its creation.- Overrides:
postProcessWidgetin classStatsViewMobs- Parameters:
context- TheStatsView.StatsInitContext.widget- TheTEntityStatsWidgetto post-process.
-