Package net.minecraftforge.fml.server
Class ServerLifecycleHooks
java.lang.Object
net.minecraftforge.fml.server.ServerLifecycleHooks
-
Field Summary
Modifier and TypeFieldDescriptionprivate static AtomicBoolean
private static MinecraftServer
private static CountDownLatch
private static final org.apache.logging.log4j.Logger
private static final FolderName
private static final org.apache.logging.log4j.Marker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildPackFinder
(Map<ModFile, ? extends ModFileResourcePack> modResourcePacks, BiConsumer<? super ModFileResourcePack, ResourcePackInfo> packSetter) Deprecated.static void
static MinecraftServer
private static Path
getServerConfigPath
(MinecraftServer server) static void
handleExit
(int retVal) static boolean
static boolean
handleServerLogin
(CHandshakePacket packet, NetworkManager manager) static void
handleServerStarted
(MinecraftServer server) static boolean
handleServerStarting
(MinecraftServer server) static void
handleServerStopped
(MinecraftServer server) static void
handleServerStopping
(MinecraftServer server) private static void
rejectConnection
(NetworkManager manager, ConnectionType type, String message) private static void
serverPackFinder
(Map<ModFile, ? extends ModFileResourcePack> modResourcePacks, BiConsumer<? super ModFileResourcePack, ResourcePackInfo> packSetter, Consumer<ResourcePackInfo> consumer, ResourcePackInfo.IFactory factory)
-
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
-
allowLogins
-
-
Constructor Details
-
ServerLifecycleHooks
public ServerLifecycleHooks()
-
-
Method Details
-
getServerConfigPath
-
handleServerAboutToStart
-
handleServerStarting
-
handleServerStarted
-
handleServerStopping
-
expectServerStopped
public static void expectServerStopped() -
handleServerStopped
-
getCurrentServer
-
handleServerLogin
-
rejectConnection
-
handleExit
public static void handleExit(int retVal) -
buildPackFinder
@Deprecated public static ResourcePackLoader.IPackInfoFinder buildPackFinder(Map<ModFile, ? extends ModFileResourcePack> modResourcePacks, BiConsumer<? super ModFileResourcePack, ResourcePackInfo> packSetter) Deprecated. -
serverPackFinder
private static void serverPackFinder(Map<ModFile, ? extends ModFileResourcePack> modResourcePacks, BiConsumer<? super ModFileResourcePack, ResourcePackInfo> packSetter, Consumer<ResourcePackInfo> consumer, ResourcePackInfo.IFactory factory)
-