Package net.minecraftforge.server
Class ServerLifecycleHooks
java.lang.Object
net.minecraftforge.server.ServerLifecycleHooks
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AtomicBooleanprivate static MinecraftServerprivate static CountDownLatchprivate static final org.apache.logging.log4j.Loggerprivate static final LevelResourceprivate static final org.apache.logging.log4j.Marker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic MinecraftServerprivate static PathgetServerConfigPath(MinecraftServer server) static booleanstatic booleanhandleServerLogin(ClientIntentionPacket packet, Connection connection) static voidhandleServerStarted(MinecraftServer server) static booleanhandleServerStarting(MinecraftServer server) static voidhandleServerStopped(MinecraftServer server) static voidhandleServerStopping(MinecraftServer server) private static booleanrejectConnection(Connection connection, ConnectionType type, String message) private static voidrunModifiers(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
-