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.
  • Enum Constant Details

  • Field Details

    • FID

      public static final net.minecraft.resources.Identifier FID
      The main "filter id" used for StatsView.Filters.
  • Method Details

    • values

      public static StatsViewMobs.GroupBy[] 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

      public static StatsViewMobs.GroupBy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getDisplayName

      @NotNull public final @NotNull net.minecraft.network.chat.Component getDisplayName()
      Specified by:
      getDisplayName in interface com.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 the StatsViewMobs.GroupBy filter.
      Parameters:
      context - The StatsView.FiltersInitContext.
      Throws:
      NullPointerException - If the argument is null.