public final class BukkitVersion
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static @NotNull java.lang.Class<?> |
findNmsClass(@NotNull java.lang.String name)
Returns the NMS class with the given name.
|
static @NotNull java.lang.Class<?> |
findOcbClass(@NotNull java.lang.String name)
Finds and returns the specified class from the CraftBukkit implementation.
|
static boolean |
isBrigadierSupported()
Tests whether is brigadier supported or not
|
static boolean |
isPaper()
Tests whether this version is running PaperSpigot
|
static int |
minorVersion()
Returns the major version for the current server.
|
static int |
patchNumber()
Returns the patch number for the current server.
|
static boolean |
supports(int major,
int minor)
Tests whether is the given version supported by this server
|
static boolean |
supports(int major,
int minor,
int patch)
Tests whether is the given version supported by this server
|
static boolean |
supportsAsyncCompletion()
Tests whether this version supports asynchronous tab completion
|
public static boolean supports(int major,
int minor)
public static boolean supports(int major,
int minor,
int patch)
public static int minorVersion()
public static int patchNumber()
@NotNull
public static @NotNull java.lang.Class<?> findNmsClass(@NotNull
@NotNull java.lang.String name)
@NotNull
public static @NotNull java.lang.Class<?> findOcbClass(@NotNull
@NotNull java.lang.String name)
name - The name of the class to find.java.lang.ClassNotFoundException - If the class cannot be found.public static boolean isPaper()
public static boolean supportsAsyncCompletion()
public static boolean isBrigadierSupported()