Enum Class StatsViewMobs.GroupBy
java.lang.Object
java.lang.Enum<StatsViewMobs.GroupBy>
com.thecsdev.betterstats.mcbs.view.statsview.StatsViewMobs.GroupBy
- All Implemented Interfaces:
com.thecsdev.commonmc.api.client.gui.widget.TDropdownWidget.Entry, Serializable, Comparable<StatsViewMobs.GroupBy>, Constable
- Enclosing class:
StatsViewMobs
public static enum StatsViewMobs.GroupBy
extends Enum<StatsViewMobs.GroupBy>
implements com.thecsdev.commonmc.api.client.gui.widget.TDropdownWidget.Entry
TDropdownWidget.Entrys for grouping EntityStats.-
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 Function<Iterable<com.thecsdev.commonmc.api.stats.util.EntityStats>, LinkedHashMap<net.minecraft.network.chat.Component, Iterable<com.thecsdev.commonmc.api.stats.util.EntityStats>>> static final voidinitFilter(StatsView.FiltersInitContext context) Initializes GUI for theStatsViewMobs.GroupByfilter.static StatsViewMobs.GroupByReturns the enum constant of this class with the specified name.static StatsViewMobs.GroupBy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
-
MOD
-
CATEGORY
-
-
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
-
getStatsGrouper
@NotNull public final @NotNull Function<Iterable<com.thecsdev.commonmc.api.stats.util.EntityStats>, LinkedHashMap<net.minecraft.network.chat.Component, Iterable<com.thecsdev.commonmc.api.stats.util.EntityStats>>> getStatsGrouper() -
initFilter
public static final void initFilter(@NotNull StatsView.FiltersInitContext context) throws NullPointerException Initializes GUI for theStatsViewMobs.GroupByfilter.- Parameters:
context- TheStatsView.FiltersInitContext.- Throws:
NullPointerException- If the argument isnull.
-