public class CraftBukkitServer extends CommonServerBase
Modifier and Type | Field and Description |
---|---|
String |
CB_ROOT_LIBS
Defines the org.bukkit.craftbukkit.libs root path
|
String |
CB_ROOT_VERSIONED
Defines the org.bukkit.craftbukkit root path
|
String |
MC_VERSION
Defines the Minecraft Version
|
String |
NMS_ROOT_VERSIONED
Defines the net.minecraft.server root path
|
String |
PACKAGE_VERSION
Defines the Package Version
|
SERVER_CLASS
Constructor and Description |
---|
CraftBukkitServer() |
Modifier and Type | Method and Description |
---|---|
String |
getClassName(String path)
Gets the real Class name for the given Path, allowing Class path
translations to occur
|
String |
getFieldName(Class<?> type,
String fieldName)
Obtains the real field name for a given field, allowing name translations
to occur
|
String |
getMethodName(Class<?> type,
String methodName,
Class<?>... params)
Obtains the real method name for a given method, allowing name
translations to occur
|
String |
getMinecraftVersion()
Gets the version of Minecraft the server supports
|
String |
getServerDescription()
Gets a more detailed description of the server, excluding the server
version
|
String |
getServerName()
Gets the full name of the server
|
String |
getServerVersion()
Gets the versioning information of the server
|
boolean |
init()
Tries to initialize the server
|
void |
postInit()
Called after the
CommonServer.init() method successfully detected the server
and initialized the server. |
disable, enable, evaluateMCVersion, getLoadableWorlds, getMinecraftVersionMajor, getMinecraftVersionPre, getServerDetails, getWorldFolder, getWorldRegionFolder, isCompatible, isLoadableWorld
public String PACKAGE_VERSION
public String MC_VERSION
public String NMS_ROOT_VERSIONED
public String CB_ROOT_VERSIONED
public String CB_ROOT_LIBS
public boolean init()
CommonServer
public void postInit()
CommonServer
CommonServer.init()
method successfully detected the server
and initialized the server. In here processing that depends on the
CommonServer instance being fully initialized can be continued.public String getClassName(String path)
CommonServer
path
- to the Class to fixpublic String getMethodName(Class<?> type, String methodName, Class<?>... params)
CommonServer
type
- of Class the method is inmethodName
- of the method to fixparams
- of the methodpublic String getFieldName(Class<?> type, String fieldName)
CommonServer
type
- of Class the field is infieldName
- of the field to fixpublic String getMinecraftVersion()
CommonServer
public String getServerVersion()
CommonServer
public String getServerDescription()
CommonServer
public String getServerName()
CommonServer
Copyright © 2019. All rights reserved.