Package com.massivecraft.factions.util
Enum XMaterial.MinecraftVersion
- java.lang.Object
-
- java.lang.Enum<XMaterial.MinecraftVersion>
-
- com.massivecraft.factions.util.XMaterial.MinecraftVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<XMaterial.MinecraftVersion>
,java.lang.constant.Constable
- Enclosing class:
- XMaterial
public static enum XMaterial.MinecraftVersion extends java.lang.Enum<XMaterial.MinecraftVersion>
Only major versions related to material changes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description UNKNOWN
1.7 or below.VERSION_1_13
Aquatic UpdateVERSION_1_14
Village Pillage UpdateVERSION_1_8
Bountiful UpdateVERSION_1_9
Combat Update (Pitiful Update?)
-
Field Summary
Fields Modifier and Type Field Description static XMaterial.MinecraftVersion[]
VALUES
-
Method Summary
Modifier and Type Method Description static XMaterial.MinecraftVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static XMaterial.MinecraftVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERSION_1_8
public static final XMaterial.MinecraftVersion VERSION_1_8
Bountiful Update
-
VERSION_1_9
public static final XMaterial.MinecraftVersion VERSION_1_9
Combat Update (Pitiful Update?)
-
VERSION_1_13
public static final XMaterial.MinecraftVersion VERSION_1_13
Aquatic Update
-
VERSION_1_14
public static final XMaterial.MinecraftVersion VERSION_1_14
Village Pillage Update
-
UNKNOWN
public static final XMaterial.MinecraftVersion UNKNOWN
1.7 or below. UsingXMaterial.getVersionIfNew()
it means 1.12 or below.
-
-
Field Detail
-
VALUES
public static final XMaterial.MinecraftVersion[] VALUES
-
-
Method Detail
-
values
public static XMaterial.MinecraftVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XMaterial.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
-
-