JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Returns the supported versions in a compressed string.
boolean
Check if this version is obsolete and is succeeded by a latter version
boolean
boolean
If this enum version is older, or the same version as the current running server
boolean
boolean
Check if this version can be loaded by Lib's Disguises, if false, then Lib's Disguises will not load
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 java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Method Details
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
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: