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 RepositorySource
buildPackFinder
(Map<net.minecraftforge.forgespi.locating.IModFile, ? extends PathPackResources> modResourcePacks) static 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) private static void
serverPackFinder
(Map<net.minecraftforge.forgespi.locating.IModFile, ? extends PathPackResources> modResourcePacks, Consumer<Pack> packAcceptor)
-
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
-
buildPackFinder
@Internal public static RepositorySource buildPackFinder(Map<net.minecraftforge.forgespi.locating.IModFile, ? extends PathPackResources> modResourcePacks) -
serverPackFinder
private static void serverPackFinder(Map<net.minecraftforge.forgespi.locating.IModFile, ? extends PathPackResources> modResourcePacks, Consumer<Pack> packAcceptor) -
runModifiers
-
handleServerStarted
-
handleServerStopping
-
handleServerLogin
-
rejectConnection
-