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.
  • 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 StatsViewGoals.SortBy[] 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 StatsViewGoals.SortBy 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
    • getSorter

      @NotNull public final @NotNull Comparator<org.apache.commons.lang3.tuple.Pair<McbsFile,McbsGoal>> getSorter()
      Returns the Comparator for sorting McbsGoals.
    • initFilter

      public static final void initFilter(@NotNull StatsView.FiltersInitContext context) throws NullPointerException
      Initializes GUI for the StatsViewGoals.SortBy filter.
      Parameters:
      context - The StatsView.FiltersInitContext.
      Throws:
      NullPointerException - If the argument is null.