Enum Class Updater.UpdateType

java.lang.Object
java.lang.Enum<Updater.UpdateType>
com.comphenix.protocol.updater.Updater.UpdateType
All Implemented Interfaces:
Serializable, Comparable<Updater.UpdateType>, Constable
Enclosing class:
Updater

public static enum Updater.UpdateType extends Enum<Updater.UpdateType>
Allows the dev to specify the type of update that will be run.
  • Enum Constant Details

    • DEFAULT

      public static final Updater.UpdateType DEFAULT
      Run a version check, and then if the file is out of date, download the newest version.
    • NO_VERSION_CHECK

      public static final Updater.UpdateType NO_VERSION_CHECK
      Don't run a version check, just find the latest update and download it.
    • NO_DOWNLOAD

      public static final Updater.UpdateType NO_DOWNLOAD
      Get information about the version and the download size, but don't actually download anything.
  • Method Details

    • values

      public static Updater.UpdateType[] 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 Updater.UpdateType 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