类 ServerLifecycleHooks
java.lang.Object
net.neoforged.neoforge.server.ServerLifecycleHooks
-
字段概要
字段修饰符和类型字段说明private 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static <T> void
ensureProperSync
(boolean modified, Holder.Reference<T> holder, Registry<T> registry) static 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)
-
字段详细资料
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SERVERHOOKS
private static final org.apache.logging.log4j.Marker SERVERHOOKS -
SERVERCONFIG
-
exitLatch
-
currentServer
-
-
构造器详细资料
-
ServerLifecycleHooks
public ServerLifecycleHooks()
-
-
方法详细资料
-
getServerConfigPath
-
handleServerAboutToStart
-
handleServerStarting
-
handleServerStarted
-
handleServerStopping
-
expectServerStopped
public static void expectServerStopped() -
handleServerStopped
-
getCurrentServer
-
handleExit
public static void handleExit(int retVal) -
ensureProperSync
private static <T> void ensureProperSync(boolean modified, Holder.Reference<T> holder, Registry<T> registry) -
runModifiers
-