类 EphemeralTestServerProvider.JUnitServer
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<TickTask>
net.minecraft.util.thread.ReentrantBlockableEventLoop<TickTask>
net.minecraft.server.MinecraftServer
net.neoforged.testframework.junit.EphemeralTestServerProvider.JUnitServer
- 所有已实现的接口:
AutoCloseable
,Executor
,CommandSource
,ServerInfo
,ProfilerMeasured
,TaskScheduler<TickTask>
,ChunkIOErrorReporter
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.server.MinecraftServer
MinecraftServer.ReloadableResources, MinecraftServer.ServerResourcePackInfo
-
字段概要
字段修饰符和类型字段说明private static final org.slf4j.Logger
private static final Services
private final LocalSampleLogger
private final Path
private static final GameRules
private static final WorldOptions
从类继承的字段 net.minecraft.server.MinecraftServer
ABSOLUTE_MAX_WORLD_SIZE, ANONYMOUS_PLAYER_PROFILE, DEMO_SETTINGS, nextTickTimeNanos, playerDataStorage, proxy, services, storageSource, VANILLA_BRAND, worldData
从类继承的字段 net.minecraft.util.thread.BlockableEventLoop
BLOCK_TIME_NANOS
从接口继承的字段 net.minecraft.commands.CommandSource
NULL
-
构造器概要
构造器构造器说明JUnitServer
(Thread thread, LevelStorageSource.LevelStorageAccess access, PackRepository pack, WorldStem stem, Path tempDir) -
方法概要
修饰符和类型方法说明create
(Thread thread, Path tempDir, LevelStorageSource.LevelStorageAccess access, PackRepository resources) fillServerSystemReport
(SystemReport report) int
int
int
protected SampleLogger
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isSingleplayerOwner
(com.mojang.authlib.GameProfile profile) boolean
boolean
saveEverything
(boolean p_195515_, boolean p_195516_, boolean p_195517_) boolean
boolean
void
void
void
从类继承的方法 net.minecraft.server.MinecraftServer
acceptsFailure, acceptsSuccess, acceptsTransfers, addTickable, cancelRecordingMetrics, close, configurePackRepository, createCommandSourceStack, createGameModeForPlayer, createLevels, createTextFilterForPlayer, doRunTask, dumpServerProperties, endMetricsRecordingTick, enforceSecureProfile, executeIfPossible, fillSystemReport, finishRecordingMetrics, forceDifficulty, forceSynchronousWrites, forceTimeSynchronization, forgeGetWorldMap, fuelValues, getAbsoluteMaxWorldSize, getAdvancements, getAllLevels, getAverageTickTimeNanos, getChatDecorator, getCommands, getCommandStorage, getCompressionThreshold, getConnection, getCurrentSmoothedTickTime, getCustomBossEvents, getDefaultGameType, getFile, getFixerUpper, getForcedGameType, getFunctions, getGameRules, getKeyPair, getLevel, getLocalIp, getMaxChainedNeighborUpdates, getMaxPlayers, getModdedStatus, getMotd, getNextTickTime, getPackRepository, getPlayerCount, getPlayerIdleTimeout, getPlayerList, getPlayerNames, getPort, getPreventProxyConnections, getProfileCache, getProfileKeySignatureValidator, getProfilePermissions, getProfileRepository, getProxy, getRecipeManager, getResourceManager, getRunningThread, getScaledTrackingDistance, getScoreboard, getServerDirectory, getServerModName, getServerResourcePack, getServerResources, getServerVersion, getSessionService, getSingleplayerProfile, getSpawnProtectionRadius, getSpawnRadius, getStatus, getStatusJson, getStructureManager, getTickCount, getTickTime, getTickTimesNanos, getWorldData, getWorldPath, getWorldScreenshotFile, halt, handleCustomClickAction, hasGui, hidesOnlinePlayers, initializeKeyPair, invalidateStatus, isCurrentlySaving, isDemo, isEnforceWhitelist, isFlightAllowed, isLevelEnabled, isPaused, isPvpAllowed, isReady, isRecordingMetrics, isResourcePackRequired, isRunning, isShutdown, isSingleplayer, isSpawningMonsters, isStopped, isTimeProfilerRunning, isUnderSpawnProtection, kickUnlistedPlayers, levelKeys, loadLevel, logChatMessage, logIPs, managedBlock, markWorldsDirty, onServerCrash, onServerExit, onTickRateChanged, overworld, pauseWhileEmptySeconds, pollTask, potionBrewing, publishServer, registries, registryAccess, reloadableRegistries, reloadResources, repliesToStatus, reportChunkLoadFailure, reportChunkSaveFailure, reportPacketHandlingException, runServer, saveAllChunks, scheduleExecutables, sendSystemMessage, serverLinks, setDefaultGameType, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFatalException, setFlightAllowed, setId, setLocalIp, setMotd, setPlayerIdleTimeout, setPlayerList, setPort, setPreventProxyConnections, setPvpAllowed, setSingleplayerProfile, setUsesAuthentication, shouldRun, spin, startRecordingMetrics, startTimeProfiler, stopRecordingMetrics, stopTimeProfiler, subscribeToDebugSample, throwIfFatalException, tickChildren, tickConnection, tickRateManager, usesAuthentication, waitForTasks, wrapRunnable
从类继承的方法 net.minecraft.util.thread.ReentrantBlockableEventLoop
runningTask
从类继承的方法 net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, getPendingTasksCount, isNonRecoverable, isSameThread, name, profiledMetrics, runAllTasks, schedule, submit, submit, submitAsync
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.chunk.storage.ChunkIOErrorReporter
reportMisplacedChunk
从接口继承的方法 net.minecraft.commands.CommandSource
alwaysAccepts
从接口继承的方法 net.minecraft.util.thread.TaskScheduler
scheduleWithResult
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NO_SERVICES
-
TEST_GAME_RULES
-
WORLD_OPTIONS
-
tempDir
-
sampleLogger
-
-
构造器详细资料
-
JUnitServer
public JUnitServer(Thread thread, LevelStorageSource.LevelStorageAccess access, PackRepository pack, WorldStem stem, Path tempDir)
-
-
方法详细资料
-
create
public static EphemeralTestServerProvider.JUnitServer create(Thread thread, Path tempDir, LevelStorageSource.LevelStorageAccess access, PackRepository resources) -
initServer
public boolean initServer()- 指定者:
initServer
在类中MinecraftServer
-
tickServer
- 覆盖:
tickServer
在类中MinecraftServer
-
saveEverything
public boolean saveEverything(boolean p_195515_, boolean p_195516_, boolean p_195517_) - 覆盖:
saveEverything
在类中MinecraftServer
-
stopServer
public void stopServer()- 覆盖:
stopServer
在类中MinecraftServer
-
waitUntilNextTick
public void waitUntilNextTick()- 覆盖:
waitUntilNextTick
在类中MinecraftServer
-
fillServerSystemReport
- 指定者:
fillServerSystemReport
在类中MinecraftServer
-
isHardcore
public boolean isHardcore()- 覆盖:
isHardcore
在类中MinecraftServer
-
getOperatorUserPermissionLevel
public int getOperatorUserPermissionLevel() -
getFunctionCompilationLevel
public int getFunctionCompilationLevel() -
shouldRconBroadcast
public boolean shouldRconBroadcast()- 指定者:
shouldRconBroadcast
在类中MinecraftServer
-
isDedicatedServer
public boolean isDedicatedServer()- 指定者:
isDedicatedServer
在类中MinecraftServer
-
getRateLimitPacketsPerSecond
public int getRateLimitPacketsPerSecond() -
isEpollEnabled
public boolean isEpollEnabled()- 指定者:
isEpollEnabled
在类中MinecraftServer
-
isCommandBlockEnabled
public boolean isCommandBlockEnabled()- 指定者:
isCommandBlockEnabled
在类中MinecraftServer
-
isPublished
public boolean isPublished()- 指定者:
isPublished
在类中MinecraftServer
-
shouldInformAdmins
public boolean shouldInformAdmins()- 指定者:
shouldInformAdmins
在接口中CommandSource
- 指定者:
shouldInformAdmins
在类中MinecraftServer
-
isSingleplayerOwner
public boolean isSingleplayerOwner(com.mojang.authlib.GameProfile profile) - 指定者:
isSingleplayerOwner
在类中MinecraftServer
-
getTickTimeLogger
- 指定者:
getTickTimeLogger
在类中MinecraftServer
-
isTickTimeLoggingEnabled
public boolean isTickTimeLoggingEnabled()- 指定者:
isTickTimeLoggingEnabled
在类中MinecraftServer
-