类 GameTestServer
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<TickTask>
net.minecraft.util.thread.ReentrantBlockableEventLoop<TickTask>
net.minecraft.server.MinecraftServer
net.minecraft.gametest.framework.GameTestServer
- 所有已实现的接口:
AutoCloseable
,Executor
,CommandSource
,ServerInfo
,ProfilerMeasured
,TaskScheduler<TickTask>
,ChunkIOErrorReporter
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.server.MinecraftServer
MinecraftServer.ReloadableResources, MinecraftServer.ServerResourcePackInfo
-
字段概要
字段修饰符和类型字段说明private static final FeatureFlagSet
private static final org.slf4j.Logger
private static final Services
private static final int
private final LocalSampleLogger
private final BlockPos
private final com.google.common.base.Stopwatch
private static final GameRules
private static final int
private List
<GameTestBatch> private final List
<TestFunction> private MultipleTestTracker
private static final WorldOptions
从类继承的字段 net.minecraft.server.MinecraftServer
ABSOLUTE_MAX_WORLD_SIZE, ANONYMOUS_PLAYER_PROFILE, DEMO_SETTINGS, nextTickTimeNanos, playerDataStorage, proxy, services, storageSource, tickTimesNanos, VANILLA_BRAND, worldData
从类继承的字段 net.minecraft.util.thread.BlockableEventLoop
BLOCK_TIME_NANOS
从接口继承的字段 net.minecraft.commands.CommandSource
NULL
-
构造器概要
构造器构造器说明GameTestServer
(Thread p_206597_, LevelStorageSource.LevelStorageAccess p_206598_, PackRepository p_206599_, WorldStem p_206600_, Collection<TestFunction> p_206601_, BlockPos p_206602_) -
方法概要
修饰符和类型方法说明static GameTestServer
create
(Thread p_206607_, LevelStorageSource.LevelStorageAccess p_206608_, PackRepository p_206609_, Collection<TestFunction> p_206610_, BlockPos p_206611_) fillServerSystemReport
(SystemReport p_177613_) int
int
int
private boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isSingleplayerOwner
(com.mojang.authlib.GameProfile p_177617_) boolean
void
onServerCrash
(CrashReport p_177623_) void
boolean
boolean
private void
startTests
(ServerLevel p_177625_) void
tickServer
(BooleanSupplier p_177619_) 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, 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, onTickRateChanged, overworld, pauseWhileEmptySeconds, pollTask, potionBrewing, publishServer, registries, registryAccess, reloadableRegistries, reloadResources, repliesToStatus, reportChunkLoadFailure, reportChunkSaveFailure, reportPacketHandlingException, runServer, saveAllChunks, saveEverything, 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, stopServer, 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 -
PROGRESS_REPORT_INTERVAL
private static final int PROGRESS_REPORT_INTERVAL- 另请参阅:
-
TEST_POSITION_RANGE
private static final int TEST_POSITION_RANGE- 另请参阅:
-
NO_SERVICES
-
ENABLED_FEATURES
-
sampleLogger
-
testBatches
-
testFunctions
-
spawnPos
-
stopwatch
private final com.google.common.base.Stopwatch stopwatch -
TEST_GAME_RULES
-
WORLD_OPTIONS
-
testTracker
-
-
构造器详细资料
-
GameTestServer
public GameTestServer(Thread p_206597_, LevelStorageSource.LevelStorageAccess p_206598_, PackRepository p_206599_, WorldStem p_206600_, Collection<TestFunction> p_206601_, BlockPos p_206602_)
-
-
方法详细资料
-
create
public static GameTestServer create(Thread p_206607_, LevelStorageSource.LevelStorageAccess p_206608_, PackRepository p_206609_, Collection<TestFunction> p_206610_, BlockPos p_206611_) -
initServer
public boolean initServer()- 指定者:
initServer
在类中MinecraftServer
-
tickServer
- 覆盖:
tickServer
在类中MinecraftServer
-
getTickTimeLogger
- 指定者:
getTickTimeLogger
在类中MinecraftServer
-
isTickTimeLoggingEnabled
public boolean isTickTimeLoggingEnabled()- 指定者:
isTickTimeLoggingEnabled
在类中MinecraftServer
-
waitUntilNextTick
public void waitUntilNextTick()- 覆盖:
waitUntilNextTick
在类中MinecraftServer
-
fillServerSystemReport
- 指定者:
fillServerSystemReport
在类中MinecraftServer
-
onServerExit
public void onServerExit()- 覆盖:
onServerExit
在类中MinecraftServer
-
onServerCrash
- 覆盖:
onServerCrash
在类中MinecraftServer
-
startTests
-
haveTestsStarted
private boolean haveTestsStarted() -
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 p_177617_) - 指定者:
isSingleplayerOwner
在类中MinecraftServer
-