Enum Class DataVersion
- All Implemented Interfaces:
Serializable,Comparable<DataVersion>,Constable
Enum for data
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DataVersionfindFromDataVersion(int dataVersion) Find data version based on its interger value.static DataVersionfindFromMcVersion(String mcVersion) Find data version based on string in format "x.y.z" which should represent Minecraft release version.intstatic DataVersionReturns the enum constant of this class with the specified name.static DataVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UPCOMING
-
v1_21_1
-
v1_21
-
v1_20_6
-
v1_20_5
-
v1_20_4
-
v1_20_3
-
v1_20_2
-
v1_20_1
-
v1_20
-
v1_19_4
-
v1_19_3
-
v1_19_2
-
v1_19_1
-
v1_19
-
v1_18_2
-
v1_18_1
-
v1_18
-
v1_17_1
-
v1_17
-
v1_16_5
-
v1_16_4
-
v1_16_3
-
v1_16_2
-
v1_16_1
-
v1_16
-
v1_15_2
-
v1_15_1
-
v1_15
-
v1_14_4
-
v1_14_3
-
v1_14_2
-
v1_14_1
-
v1_14
-
v1_13_2
-
v1_13_1
-
v1_13
-
post1466
-
pre1466
-
v1_12_2
-
v1_12_1
-
v1_12
-
v1_11_2
-
v1_11_1
-
v1_11
-
v1_10_2
-
v1_10_1
-
v1_10
-
v1_9_4
-
v1_9_3
-
v1_9_2
-
v1_9_1
-
v1_9
-
DEFAULT
-
-
Field Details
-
CURRENT
-
-
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 nameNullPointerException- if the argument is null
-
getDataVersion
public int getDataVersion()- Returns:
- data version of specific mc version
-
getMcVersion
- Returns:
- mc version as readable string
-
getSuccessor
- Returns:
- mc version as readable string
-
findFromMcVersion
Find data version based on string in format "x.y.z" which should represent Minecraft release version. Default is data version "0" which is pre 1.9- Parameters:
mcVersion- string in format "x.y.z" representing Minecraft release version- Returns:
- data version enum
-
findFromDataVersion
Find data version based on its interger value.- Parameters:
dataVersion- integer format of data version- Returns:
- dataVersion which is the nearest lower than supplied value
-