Class HytaleServer

java.lang.Object
com.hypixel.hytale.server.core.HytaleServer

public class HytaleServer extends Object
  • Field Details

    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      See Also:
    • SCHEDULED_EXECUTOR

      public static final ScheduledExecutorService SCHEDULED_EXECUTOR
    • METRICS_REGISTRY

      @Nonnull public static final MetricsRegistry<HytaleServer> METRICS_REGISTRY
    • LOGGER

      private static final com.hypixel.hytale.logger.HytaleLogger LOGGER
    • instance

      private static HytaleServer instance
    • aliveLock

      private final Semaphore aliveLock
    • booting

      private final AtomicBoolean booting
    • booted

      private final AtomicBoolean booted
    • shutdown

      private final AtomicReference<ShutdownReason> shutdown
    • eventBus

      private final EventBus eventBus
    • pluginManager

      private final PluginManager pluginManager
    • commandManager

      private final CommandManager commandManager
    • hytaleServerConfig

      @Nonnull private final com.hypixel.hytale.server.core.HytaleServerConfig hytaleServerConfig
    • boot

      private final Instant boot
    • bootStart

      private final long bootStart
    • pluginsProgress

      private int pluginsProgress
  • Constructor Details

  • Method Details

    • getEventBus

      @Nonnull public EventBus getEventBus()
    • getPluginManager

      @Nonnull public PluginManager getPluginManager()
    • getCommandManager

      @Nonnull public CommandManager getCommandManager()
    • getConfig

      @Nonnull public com.hypixel.hytale.server.core.HytaleServerConfig getConfig()
    • boot

      private void boot()
    • shutdownServer

      public void shutdownServer()
    • shutdownServer

      public void shutdownServer(@Nonnull ShutdownReason reason)
    • shutdown0

      void shutdown0(@Nonnull ShutdownReason reason)
    • doneSetup

      public void doneSetup(PluginBase plugin)
    • doneStart

      public void doneStart(PluginBase plugin)
    • doneStop

      public void doneStop(PluginBase plugin)
    • sendSingleplayerProgress

      public void sendSingleplayerProgress()
    • getServerName

      public String getServerName()
    • isBooting

      public boolean isBooting()
    • isBooted

      public boolean isBooted()
    • isShuttingDown

      public boolean isShuttingDown()
    • getBoot

      @Nonnull public Instant getBoot()
    • getBootStart

      public long getBootStart()
    • getShutdownReason

      @Nullable public ShutdownReason getShutdownReason()
    • sendSingleplayerSignal

      private void sendSingleplayerSignal(String message)
    • reportSingleplayerStatus

      public void reportSingleplayerStatus(String message)
    • reportSaveProgress

      public void reportSaveProgress(@Nonnull World world, int saved, int total)
    • get

      public static HytaleServer get()