Class StatsViewFood
java.lang.Object
com.thecsdev.betterstats.api.mcbs.view.statsview.StatsView
com.thecsdev.betterstats.mcbs.view.statsview.SubjectStatsView<com.thecsdev.commonmc.api.stats.util.ItemStats>
com.thecsdev.betterstats.mcbs.view.statsview.StatsViewItems
com.thecsdev.betterstats.mcbs.view.statsview.StatsViewFood
- All Implemented Interfaces:
com.thecsdev.commonmc.api.client.gui.widget.TDropdownWidget.Entry
StatsView that displays "Food & Drinks" statistics.-
Nested Class Summary
Nested classes/interfaces inherited from class StatsViewItems
StatsViewItems.GroupBy, StatsViewItems.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.ItemStats> getStatsPredicate(@NotNull StatsView.Filters filters) protected final voidpostProcessWidget(@NotNull StatsView.StatsInitContext context, @NotNull com.thecsdev.commonmc.api.client.gui.widget.stats.TItemStatsWidget widget) Post-processes a newly createdTItemStatsWidget.Methods inherited from class StatsViewItems
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 classStatsViewItems
-
getStatsPredicate
@Virtual @NotNull protected @NotNull Predicate<com.thecsdev.commonmc.api.stats.util.ItemStats> getStatsPredicate(@NotNull @NotNull StatsView.Filters filters) throws NullPointerException Description copied from class:SubjectStatsView- Overrides:
getStatsPredicatein classSubjectStatsView<com.thecsdev.commonmc.api.stats.util.ItemStats>- 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.TItemStatsWidget widget) Description copied from class:StatsViewItemsPost-processes a newly createdTItemStatsWidget.- Overrides:
postProcessWidgetin classStatsViewItems- Parameters:
context- TheStatsView.StatsInitContext.widget- The newly createdTItemStatsWidget.
-