Enum Class VersionChecker.Status

java.lang.Object
java.lang.Enum<VersionChecker.Status>
net.neoforged.neoforge.common.VersionChecker.Status
All Implemented Interfaces:
Serializable, Comparable<VersionChecker.Status>, Constable
Enclosing class:
VersionChecker

public static enum VersionChecker.Status extends Enum<VersionChecker.Status>
The status of a version check result.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The current version is ahead/more up to date of the recommended and latest versions.
    The current version is a beta version.
    The current version is an out of date beta version.
    An error occurred during version checking for this mod.
    The current version is out of date (and not a beta version) with either the recommended or latest versions.
    The current version is up to date with the recommended version.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final boolean
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
    private
    Status(boolean draw)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether to draw an update indicator.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • FAILED

      public static final VersionChecker.Status FAILED
      An error occurred during version checking for this mod.
    • UP_TO_DATE

      public static final VersionChecker.Status UP_TO_DATE
      The current version is up to date with the recommended version.
    • OUTDATED

      public static final VersionChecker.Status OUTDATED
      The current version is out of date (and not a beta version) with either the recommended or latest versions.
    • AHEAD

      public static final VersionChecker.Status AHEAD
      The current version is ahead/more up to date of the recommended and latest versions.
    • BETA

      public static final VersionChecker.Status BETA
      The current version is a beta version. This means that there is no recommended version, and either there is also no latest version, or the current version is up to date with the latest version.
    • BETA_OUTDATED

      public static final VersionChecker.Status BETA_OUTDATED
      The current version is an out of date beta version. This means there is no recommend version, and the current version is out of date with the latest version.
  • Field Details

    • draw

      final boolean draw
  • Constructor Details

    • Status

      private Status(boolean draw)
    • Status

      private Status()
  • Method Details

    • values

      public static VersionChecker.Status[] 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 VersionChecker.Status 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
    • shouldDraw

      public boolean shouldDraw()
      Returns whether to draw an update indicator. This is used by the 'Mods' button and the mod list screen.
      Returns:
      whether to draw an update indicator