Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getEventBus()
- getPluginManager()
- getCommandManager()
- getConfig()
- shutdownServer()
- shutdownServer(ShutdownReason)
- doneSetup(PluginBase)
- doneStart(PluginBase)
- doneStop(PluginBase)
- sendSingleplayerProgress()
- getServerName()
- isBooting()
- isBooted()
- isShuttingDown()
- getBoot()
- getBootStart()
- getShutdownReason()
- reportSingleplayerStatus(Message)
- reportSingleplayerStatus(Message, double)
- reportSaveProgress(World, int, int)
- get()
Class HytaleServer
java.lang.Object
com.hypixel.hytale.server.core.HytaleServer
This class is the core of the server and is the main reference point.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final MetricsRegistry<HytaleServer> The metrics registry for theHytaleServerclass.static final ScheduledExecutorServiceShared scheduled executor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoneSetup(PluginBase plugin) voiddoneStart(PluginBase plugin) voiddoneStop(PluginBase plugin) static HytaleServerget()Get the server instance.getBoot()longbooleanisBooted()booleanbooleanvoidreportSaveProgress(World world, int saved, int total) voidreportSingleplayerStatus(Message message) voidreportSingleplayerStatus(Message message, double progress) voidvoidvoidshutdownServer(ShutdownReason reason) Start the shutdown sequence.
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
SCHEDULED_EXECUTOR
Shared scheduled executor. TODO: Is there maybe already a shared scheduled executor as part of the JDK we can use? -
METRICS_REGISTRY
The metrics registry for theHytaleServerclass.
-
-
Constructor Details
-
HytaleServer
public HytaleServer()
-
-
Method Details
-
getEventBus
-
getPluginManager
-
getCommandManager
-
getConfig
-
shutdownServer
public void shutdownServer() -
shutdownServer
Start the shutdown sequence. This method is called from: -StopCommand-JavaPlugin -
doneSetup
-
doneStart
-
doneStop
-
sendSingleplayerProgress
public void sendSingleplayerProgress() -
getServerName
-
isBooting
public boolean isBooting() -
isBooted
public boolean isBooted() -
isShuttingDown
public boolean isShuttingDown() -
getBoot
-
getBootStart
public long getBootStart() -
getShutdownReason
-
reportSingleplayerStatus
-
reportSingleplayerStatus
-
reportSaveProgress
-
get
-