Class StatsViewGoals
java.lang.Object
com.thecsdev.betterstats.api.mcbs.view.statsview.StatsView
com.thecsdev.betterstats.mcbs.view.statsview.StatsViewGoals
- All Implemented Interfaces:
com.thecsdev.commonmc.api.client.gui.widget.TDropdownWidget.Entry
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class StatsView
StatsView.Filters, StatsView.FiltersInitContext, StatsView.StatsInitContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.IdentifierStatsView.Filterskey for whether the completed goals should be hidden.static final net.minecraft.resources.IdentifierStatsView.Filterskey for whether the goal management buttons should currently be visible.static final StatsViewGoalsThe main instance of thisClass. -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull net.minecraft.network.chat.ComponentReturns the display name of thisStatsView.
ThisComponentwill be shown on the GUI to indicate the view's name.final voidinitFilters(@NotNull StatsView.FiltersInitContext context) Invoked when aStatsView's filters GUI is initializing.final voidinitStats(@NotNull StatsView.StatsInitContext context) Invoked when theStatsView's statistics GUI is initializing.Methods inherited from class StatsView
getDefault
-
Field Details
-
INSTANCE
The main instance of thisClass. -
FID_MANAGE_GOALS
public static final net.minecraft.resources.Identifier FID_MANAGE_GOALSStatsView.Filterskey for whether the goal management buttons should currently be visible.Filter value type:
boolean -
FID_HIDE_COMPLETED
public static final net.minecraft.resources.Identifier FID_HIDE_COMPLETEDStatsView.Filterskey for whether the completed goals should be hidden.Filter value type:
boolean
-
-
Method Details
-
getDisplayName
@NotNull public final @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- Specified by:
getDisplayNamein classStatsView
-
initFilters
Description copied from class:StatsViewInvoked when aStatsView's filters GUI is initializing.- Overrides:
initFiltersin classStatsView- Parameters:
context- TheStatsView.FiltersInitContext.
-
initStats
Description copied from class:StatsViewInvoked when theStatsView's statistics GUI is initializing.- Specified by:
initStatsin classStatsView- Parameters:
context- TheStatsView.StatsInitContext.
-