public enum NmsVersion extends Enum<NmsVersion>
| Enum Constant and Description |
|---|
NONE |
v1_10_R1 |
v1_11_R1 |
v1_12_R1 |
v1_13_R1 |
v1_13_R2 |
v1_14_R1 |
v1_15_R1 |
v1_8_R1 |
v1_8_R2 |
v1_8_R3 |
v1_9_R1 |
v1_9_R2 |
| Modifier and Type | Method and Description |
|---|---|
static NmsVersion |
forMinecraftVersion(MinecraftVersion minecraftVersion)
Gets the
NmsVersion for the given MinecraftVersion. |
Set<MinecraftVersion> |
getMinecraftVersions()
Gets the
MinecraftVersions that used this NmsVersion. |
protected String |
getPackageComponent() |
String |
nms(String className)
Prepends the versioned NMS prefix to the given class name
|
Class<?> |
nmsClass(String className)
Prepends the versioned NMS prefix to the given class name
|
String |
obc(String className)
Prepends the versioned OBC prefix to the given class name
|
Class<?> |
obcClass(String className)
Prepends the versioned OBC prefix to the given class name
|
static NmsVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NmsVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NmsVersion NONE
public static final NmsVersion v1_8_R1
public static final NmsVersion v1_8_R2
public static final NmsVersion v1_8_R3
public static final NmsVersion v1_9_R1
public static final NmsVersion v1_9_R2
public static final NmsVersion v1_10_R1
public static final NmsVersion v1_11_R1
public static final NmsVersion v1_12_R1
public static final NmsVersion v1_13_R1
public static final NmsVersion v1_13_R2
public static final NmsVersion v1_14_R1
public static final NmsVersion v1_15_R1
public static NmsVersion[] values()
for (NmsVersion c : NmsVersion.values()) System.out.println(c);
public static NmsVersion valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected String getPackageComponent()
public Set<MinecraftVersion> getMinecraftVersions()
MinecraftVersions that used this NmsVersion.@Nonnull public String nms(String className)
className - the name of the class@Nonnull public Class<?> nmsClass(String className) throws ClassNotFoundException
className - the name of the classClassNotFoundException@Nonnull public String obc(String className)
className - the name of the class@Nonnull public Class<?> obcClass(String className) throws ClassNotFoundException
className - the name of the classClassNotFoundException@Nullable public static NmsVersion forMinecraftVersion(MinecraftVersion minecraftVersion)
NmsVersion for the given MinecraftVersion.minecraftVersion - the minecraft versionCopyright © 2020. All rights reserved.