Enum MinecraftVersion
- java.lang.Object
-
- java.lang.Enum<MinecraftVersion>
-
- com.enjin.minecraft_commons.spigot.util.MinecraftVersion
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MinecraftVersion>
public enum MinecraftVersion extends java.lang.Enum<MinecraftVersion>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MinecraftVersionfindVersion(java.lang.String identifier)intgetIdentifier()java.lang.StringgetRawPackage()static MinecraftVersiongetVersion()static booleanisGsonEnabled()static MinecraftVersionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MinecraftVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final MinecraftVersion UNKNOWN
-
MC1_7_R4
public static final MinecraftVersion MC1_7_R4
-
MC1_8_R3
public static final MinecraftVersion MC1_8_R3
-
MC1_9_R2
public static final MinecraftVersion MC1_9_R2
-
MC1_10_R1
public static final MinecraftVersion MC1_10_R1
-
MC1_11_R1
public static final MinecraftVersion MC1_11_R1
-
MC1_12_R1
public static final MinecraftVersion MC1_12_R1
-
MC1_13_R1
public static final MinecraftVersion MC1_13_R1
-
MC1_13_R2
public static final MinecraftVersion MC1_13_R2
-
-
Method Detail
-
values
public static MinecraftVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MinecraftVersion c : MinecraftVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MinecraftVersion valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
findVersion
public static MinecraftVersion findVersion(java.lang.String identifier)
-
getVersion
public static MinecraftVersion getVersion()
-
isGsonEnabled
public static boolean isGsonEnabled()
-
getIdentifier
public int getIdentifier()
-
getRawPackage
public java.lang.String getRawPackage()
-
-