Enum Class NmsVersion

java.lang.Object
java.lang.Enum<NmsVersion>
me.libraryaddict.disguise.utilities.reflection.NmsVersion
All Implemented Interfaces:
Serializable, Comparable<NmsVersion>, Constable

public enum NmsVersion extends Enum<NmsVersion>
  • Enum Constant Details

  • Method Details

    • values

      public static NmsVersion[] 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 NmsVersion 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
    • isVersionLoadable

      public boolean isVersionLoadable()
      Check if this version can be loaded by Lib's Disguises, if false, then Lib's Disguises will not load
      Returns:
      true if the version is loadable
    • isDeprecated

      public boolean isDeprecated()
      Check if this version is obsolete and is succeeded by a latter version
      Returns:
      true if this version should not be used
    • getRecommendedMinorVersion

      public String getRecommendedMinorVersion()
    • getLastSupported

      public String getLastSupported()
    • isMinecraftVersion

      public boolean isMinecraftVersion(String minecraftVersion)
    • isSupported

      public boolean isSupported()
      If this enum version is older, or the same version as the current running server
    • isVersion

      public boolean isVersion()
    • getCompressedVersions

      public String getCompressedVersions()
      Returns the supported versions in a compressed string. Eg, 1.21.[2/3/4]
      Returns: