Package net.neoforged.neoforge.server
Class ServerLifecycleHooks
java.lang.Object
net.neoforged.neoforge.server.ServerLifecycleHooks
-
Field Summary
Modifier and TypeFieldDescriptionprivate static @Nullable MinecraftServer
private static @Nullable CountDownLatch
private static final org.apache.logging.log4j.Logger
private static final LevelResource
private static final org.apache.logging.log4j.Marker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static @Nullable MinecraftServer
private static Path
getServerConfigPath
(MinecraftServer server) static void
handleExit
(int retVal) static void
static void
handleServerStarted
(MinecraftServer server) static void
handleServerStarting
(MinecraftServer server) static void
handleServerStopped
(MinecraftServer server) static void
handleServerStopping
(MinecraftServer server) private static void
runModifiers
(MinecraftServer server)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SERVERHOOKS
private static final org.apache.logging.log4j.Marker SERVERHOOKS -
SERVERCONFIG
-
exitLatch
-
currentServer
-
-
Constructor Details
-
ServerLifecycleHooks
public ServerLifecycleHooks()
-
-
Method Details
-
getServerConfigPath
-
handleServerAboutToStart
-
handleServerStarting
-
handleServerStarted
-
handleServerStopping
-
expectServerStopped
public static void expectServerStopped() -
handleServerStopped
-
getCurrentServer
-
handleExit
public static void handleExit(int retVal) -
runModifiers
-