Enum Class ModListScreen.SortType

java.lang.Object
java.lang.Enum<ModListScreen.SortType>
net.minecraftforge.fmlclient.gui.screen.ModListScreen.SortType
All Implemented Interfaces:
Serializable, Comparable<ModListScreen.SortType>, Constable, Comparator<net.minecraftforge.forgespi.language.IModInfo>
Enclosing class:
ModListScreen

private static enum ModListScreen.SortType extends Enum<ModListScreen.SortType> implements Comparator<net.minecraftforge.forgespi.language.IModInfo>
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • SortType

      private SortType()
  • Method Details

    • values

      public static ModListScreen.SortType[] 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 ModListScreen.SortType 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
    • compare

      protected int compare(String name1, String name2)
    • compare

      public int compare(net.minecraftforge.forgespi.language.IModInfo o1, net.minecraftforge.forgespi.language.IModInfo o2)
      Specified by:
      compare in interface Comparator<net.minecraftforge.forgespi.language.IModInfo>
    • getButtonText

      Component getButtonText()