类 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
    • 字段详细资料

      • gson

        public static final boolean gson
        Is there Gson support?
        Added in version 0.5
        另请参阅:
        常量字段值
    • 构造器详细资料

      • MXAPI

        public MXAPI()
    • 方法详细资料

      • getNMSClass

        public static Class<?> getNMSClass​(String clazz)
        Get NMS Class
        Add in version 0.6
      • getOBCClass

        public static Class<?> getOBCClass​(String clazz)
        Get Obc Class
        Add in version 0.6
      • getCommandHelper

        public static CommandHelper getCommandHelper()
      • getVersion

        public static String getVersion()
        Lib Current Version
      • getInfo

        public static Info getInfo()
        Get Server Info
      • 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)
        InputReturn
        "0.5"true
        "0.5.1"true
        "0.4"true
        "0.5.2"false
        "0.6"false
        Added in version 0.5.1
        参数:
        ver - Version to be tested
        返回:
        Whether to support (more than)
      • support

        public static boolean support​(String now,
                                      String need)