类 MXAPI
- java.lang.Object
-
- cn.mcres.gyhhy.MXLib.bukkit.MXAPI
-
public class MXAPI extends Object
public static void main(String[] args){ System.out.println("MXBukkitLib built using version: " + MXAPI.version); System.out.println("MXBukkitLib version: " + MXAPI.getVersion()); }
- 作者:
- 32798
-
-
构造器概要
构造器 构造器 说明 MXAPI()
-
方法概要
修饰符和类型 方法 说明 static CommandHelper
getCommandHelper()
static Info
getInfo()
Get Server Infostatic Class<?>
getNMSClass(String clazz)
Get NMS Class
Add in version 0.6static Class<?>
getOBCClass(String clazz)
Get Obc Class
Add in version 0.6static TitleAPI
getTitleAPI()
已过时。static String
getVersion()
Lib Current Versionstatic boolean
support(String ver)
Check if the provided version number information is supported in the current version.
E.g.static boolean
support(String now, String need)
-
-
-
方法详细资料
-
getCommandHelper
public static CommandHelper getCommandHelper()
-
getVersion
public static String getVersion()
Lib Current Version
-
getInfo
public static Info getInfo()
Get Server Info
-
getTitleAPI
@Deprecated public static TitleAPI getTitleAPI()
已过时。
-
support
public static boolean support(String ver)
Check if the provided version number information is supported in the current version.
E.g.(If current version is 0.5.1)
Input Return "0.5" true "0.5.1" true "0.4" true "0.5.2" false "0.6" false - 参数:
ver
- Version to be tested- 返回:
- Whether to support (more than)
-
-