Enum Class StatsViewGoals.SortBy
java.lang.Object
java.lang.Enum<StatsViewGoals.SortBy>
com.thecsdev.betterstats.mcbs.view.statsview.StatsViewGoals.SortBy
- All Implemented Interfaces:
com.thecsdev.commonmc.api.client.gui.widget.TDropdownWidget.Entry, Serializable, Comparable<StatsViewGoals.SortBy>, Constable
- Enclosing class:
StatsViewGoals
public static enum StatsViewGoals.SortBy
extends Enum<StatsViewGoals.SortBy>
implements com.thecsdev.commonmc.api.client.gui.widget.TDropdownWidget.Entry
TDropdownWidget.Entrys for sorting McbsGoals.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.IdentifierThe main "filter id" used forStatsView.Filters. -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull net.minecraft.network.chat.Componentfinal @NotNull Comparator<org.apache.commons.lang3.tuple.Pair<McbsFile, McbsGoal>> Returns theComparatorfor sortingMcbsGoals.static final voidinitFilter(StatsView.FiltersInitContext context) Initializes GUI for theStatsViewGoals.SortByfilter.static StatsViewGoals.SortByReturns the enum constant of this class with the specified name.static StatsViewGoals.SortBy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALPHABETICAL
-
LACITEBAHPLA
-
INCREMENTAL
-
DECREMENTAL
-
-
Field Details
-
FID
public static final net.minecraft.resources.Identifier FIDThe main "filter id" used forStatsView.Filters.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getDisplayName
@NotNull public final @NotNull net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayNamein interfacecom.thecsdev.commonmc.api.client.gui.widget.TDropdownWidget.Entry
-
getSorter
@NotNull public final @NotNull Comparator<org.apache.commons.lang3.tuple.Pair<McbsFile,McbsGoal>> getSorter()Returns theComparatorfor sortingMcbsGoals. -
initFilter
public static final void initFilter(@NotNull StatsView.FiltersInitContext context) throws NullPointerException Initializes GUI for theStatsViewGoals.SortByfilter.- Parameters:
context- TheStatsView.FiltersInitContext.- Throws:
NullPointerException- If the argument isnull.
-