Package net.minecraftforge.server
Class ServerLifecycleHooks
java.lang.Object
net.minecraftforge.server.ServerLifecycleHooks
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final AtomicBoolean
private static MinecraftServer
private static 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 MinecraftServer
private static Path
getServerConfigPath
(MinecraftServer server) static boolean
static boolean
handleServerLogin
(ClientIntentionPacket packet, Connection connection) static void
handleServerStarted
(MinecraftServer server) static boolean
handleServerStarting
(MinecraftServer server) static void
handleServerStopped
(MinecraftServer server) static void
handleServerStopping
(MinecraftServer server) private static boolean
rejectConnection
(Connection connection, ConnectionType type, String message) 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
-
allowLogins
-
exitLatch
-
currentServer
-
-
Constructor Details
-
ServerLifecycleHooks
public ServerLifecycleHooks()
-
-
Method Details
-
getServerConfigPath
-
handleServerAboutToStart
-
handleServerStarting
-
expectServerStopped
public static void expectServerStopped() -
handleServerStopped
-
getCurrentServer
-
runModifiers
-
handleServerStarted
-
handleServerStopping
-
handleServerLogin
-
rejectConnection
-