Enum Class ServerVersion
- All Implemented Interfaces:
Serializable
,Comparable<ServerVersion>
,Constable
All the Minecraft versions that DialogueMaster currently supports.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ServerVersion
getFromString
(String version) Converts a string to aServerVersion
.int
boolean
isEqualTo
(ServerVersion other) boolean
isGreaterThan
(ServerVersion other) boolean
isLessThan
(ServerVersion other) static ServerVersion
Returns the enum constant of this class with the specified name.static ServerVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSUPPORTED
-
v1_16_R0
-
v1_16_R1
-
v1_16_R2
-
v1_16_R3
-
v1_16_R4
-
v1_16_R5
-
v1_17_R0
-
v1_17_R1
-
v1_18_R0
-
v1_18_R1
-
v1_18_R2
-
v1_19_R0
-
v1_19_R1
-
v1_19_R2
-
v1_19_R3
-
v1_19_R4
-
v1_20_R0
-
v1_20_R1
-
v1_20_R2
-
v1_20_R3
-
v1_20_R4
-
v1_20_R5
-
v1_20_R6
-
-
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
-
getPackFormat
public int getPackFormat() -
isGreaterThan
-
isLessThan
-
isEqualTo
-
getFromString
Converts a string to aServerVersion
. Only accepts versions that are in the format "vX_Y_RZ". For example: "v1_16_R1", "v1_19_R3", "v1_20_R0", etc.- Returns:
- The
ServerVersion
or null if the version is not supported.
-