public enum MinecraftVersion extends Enum<MinecraftVersion>
Enum Constant and Description |
---|
MC1_10_R1 |
MC1_11_R1 |
MC1_12_R1 |
MC1_13_R1 |
MC1_13_R2 |
MC1_14_R1 |
MC1_15_R1 |
MC1_16_R1 |
MC1_16_R2 |
MC1_16_R3 |
MC1_17_R1 |
MC1_18_R1 |
MC1_18_R2 |
MC1_19_R1 |
MC1_19_R2 |
MC1_19_R3 |
MC1_20_R1 |
MC1_20_R2 |
MC1_20_R3 |
MC1_20_R4 |
MC1_21_R1 |
MC1_21_R2 |
MC1_21_R3 |
MC1_7_R4 |
MC1_8_R3 |
MC1_9_R1 |
MC1_9_R2 |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static void |
disableBStats()
Calling this function before the NBT-Api is used will disable bStats stats
collection.
|
static void |
disablePackageWarning()
Forcefully disables the log message for plugins not shading the API to
another location.
|
static void |
disableUpdateCheck()
Disables the update check.
|
static void |
enableUpdateCheck()
Enables the update check.
|
static Logger |
getLogger() |
static String |
getNBTAPIVersion() |
String |
getPackageName()
This method is required to hot-wire the plugin during mappings generation for
newer mc versions thanks to md_5 not used mojmap.
|
static MinecraftVersion |
getVersion()
Getter for this servers MinecraftVersion.
|
int |
getVersionId() |
static boolean |
hasGsonSupport() |
static boolean |
isAtLeastVersion(MinecraftVersion version)
Returns true if the current versions is at least the given Version
|
static boolean |
isFoliaPresent() |
static boolean |
isForgePresent() |
boolean |
isMojangMapping() |
static boolean |
isNewerThan(MinecraftVersion version)
Returns true if the current versions newer (not equal) than the given version
|
static void |
replaceLogger(Logger logger)
Replaces the NBT-API logger with a custom implementation.
|
static MinecraftVersion |
valueOf(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.
|
public static final MinecraftVersion UNKNOWN
public static final MinecraftVersion MC1_7_R4
public static final MinecraftVersion MC1_8_R3
public static final MinecraftVersion MC1_9_R1
public static final MinecraftVersion MC1_9_R2
public static final MinecraftVersion MC1_10_R1
public static final MinecraftVersion MC1_11_R1
public static final MinecraftVersion MC1_12_R1
public static final MinecraftVersion MC1_13_R1
public static final MinecraftVersion MC1_13_R2
public static final MinecraftVersion MC1_14_R1
public static final MinecraftVersion MC1_15_R1
public static final MinecraftVersion MC1_16_R1
public static final MinecraftVersion MC1_16_R2
public static final MinecraftVersion MC1_16_R3
public static final MinecraftVersion MC1_17_R1
public static final MinecraftVersion MC1_18_R1
public static final MinecraftVersion MC1_18_R2
public static final MinecraftVersion MC1_19_R1
public static final MinecraftVersion MC1_19_R2
public static final MinecraftVersion MC1_19_R3
public static final MinecraftVersion MC1_20_R1
public static final MinecraftVersion MC1_20_R2
public static final MinecraftVersion MC1_20_R3
public static final MinecraftVersion MC1_20_R4
public static final MinecraftVersion MC1_21_R1
public static final MinecraftVersion MC1_21_R2
public static final MinecraftVersion MC1_21_R3
protected static final String VERSION
public static MinecraftVersion[] values()
for (MinecraftVersion c : MinecraftVersion.values()) System.out.println(c);
public static MinecraftVersion 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 nullpublic int getVersionId()
public boolean isMojangMapping()
public String getPackageName()
public static boolean isAtLeastVersion(MinecraftVersion version)
version
- The minimum versionpublic static boolean isNewerThan(MinecraftVersion version)
version
- The minimum versionpublic static MinecraftVersion getVersion()
public static String getNBTAPIVersion()
public static boolean hasGsonSupport()
public static boolean isForgePresent()
public static boolean isFoliaPresent()
public static void disableBStats()
public static void disableUpdateCheck()
public static void enableUpdateCheck()
public static void disablePackageWarning()
public static Logger getLogger()
public static void replaceLogger(Logger logger)
logger
- The new logger(can not be null!)Copyright © 2015–2024 tr7zw. All rights reserved.