Package com.hypixel.hytale.server.core
Class HytaleServer
java.lang.Object
com.hypixel.hytale.server.core.HytaleServer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Semaphoreprivate final Instantprivate final AtomicBooleanprivate final AtomicBooleanprivate final longprivate final CommandManagerstatic final intprivate final EventBusprivate final com.hypixel.hytale.server.core.HytaleServerConfigprivate static HytaleServerprivate static final com.hypixel.hytale.logger.HytaleLoggerstatic final MetricsRegistry<HytaleServer> private final PluginManagerprivate intstatic final ScheduledExecutorServiceprivate final AtomicReference<ShutdownReason> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidboot()voiddoneSetup(PluginBase plugin) voiddoneStart(PluginBase plugin) voiddoneStop(PluginBase plugin) static HytaleServerget()getBoot()longcom.hypixel.hytale.server.core.HytaleServerConfigbooleanisBooted()booleanbooleanvoidreportSaveProgress(World world, int saved, int total) voidreportSingleplayerStatus(String message) voidprivate voidsendSingleplayerSignal(String message) (package private) voidshutdown0(ShutdownReason reason) voidvoidshutdownServer(ShutdownReason reason)
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
SCHEDULED_EXECUTOR
-
METRICS_REGISTRY
-
LOGGER
private static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
instance
-
aliveLock
-
booting
-
booted
-
shutdown
-
eventBus
-
pluginManager
-
commandManager
-
hytaleServerConfig
@Nonnull private final com.hypixel.hytale.server.core.HytaleServerConfig hytaleServerConfig -
boot
-
bootStart
private final long bootStart -
pluginsProgress
private int pluginsProgress
-
-
Constructor Details
-
HytaleServer
- Throws:
IOException
-
-
Method Details
-
getEventBus
-
getPluginManager
-
getCommandManager
-
getConfig
@Nonnull public com.hypixel.hytale.server.core.HytaleServerConfig getConfig() -
boot
private void boot() -
shutdownServer
public void shutdownServer() -
shutdownServer
-
shutdown0
-
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
-
sendSingleplayerSignal
-
reportSingleplayerStatus
-
reportSaveProgress
-
get
-