Package net.minecraft.gametest.framework
Class GameTestServer
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<R>
net.minecraft.util.thread.ReentrantBlockableEventLoop<TickTask>
net.minecraft.server.MinecraftServer
net.minecraft.gametest.framework.GameTestServer
- All Implemented Interfaces:
- AutoCloseable,- Executor,- CommandSource,- ServerInfo,- ProfilerMeasured,- ProcessorHandle<TickTask>
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.server.MinecraftServerMinecraftServer.ReloadableResources, MinecraftServer.ServerResourcePackInfo
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final Servicesprivate static final intprivate final BlockPosprivate static final GameRulesprivate final List<GameTestBatch>private MultipleTestTrackerprivate static final WorldOptionsFields inherited from class net.minecraft.server.MinecraftServerABSOLUTE_MAX_WORLD_SIZE, ANONYMOUS_PLAYER_PROFILE, DEMO_SETTINGS, MS_PER_TICK, nextTickTime, playerDataStorage, proxy, services, START_CHUNK_RADIUS, storageSource, tickTimes, VANILLA_BRAND, worldDataFields inherited from interface net.minecraft.commands.CommandSourceNULL
- 
Constructor SummaryConstructorsConstructorDescriptionGameTestServer(Thread p_206597_, LevelStorageSource.LevelStorageAccess p_206598_, PackRepository p_206599_, WorldStem p_206600_, Collection<GameTestBatch> p_206601_, BlockPos p_206602_) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic GameTestServercreate(Thread p_206607_, LevelStorageSource.LevelStorageAccess p_206608_, PackRepository p_206609_, Collection<GameTestBatch> p_206610_, BlockPos p_206611_) fillServerSystemReport(SystemReport p_177613_) intintintprivate booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisSingleplayerOwner(com.mojang.authlib.GameProfile p_177617_) voidonServerCrash(CrashReport p_177623_) voidbooleanbooleanprivate voidstartTests(ServerLevel p_177625_) voidtickServer(BooleanSupplier p_177619_) voidMethods inherited from class net.minecraft.server.MinecraftServeracceptsFailure, acceptsSuccess, addTickable, areNpcsEnabled, cancelRecordingMetrics, close, configurePackRepository, createCommandSourceStack, createGameModeForPlayer, createLevels, createTextFilterForPlayer, doRunTask, dumpServerProperties, enforceSecureProfile, executeIfPossible, fillSystemReport, finishRecordingMetrics, forceDifficulty, forceSynchronousWrites, forceTimeSynchronization, forgeGetWorldMap, getAbsoluteMaxWorldSize, getAdvancements, getAllLevels, getAverageTickTime, getChatDecorator, getCommands, getCommandStorage, getCompressionThreshold, getConnection, getCustomBossEvents, getDefaultGameType, getFile, getFixerUpper, getForcedGameType, getFunctions, getGameRules, getKeyPair, getLevel, getLocalIp, getLootData, getMaxChainedNeighborUpdates, getMaxPlayers, getModdedStatus, getMotd, getNextTickTime, getPackRepository, getPlayerCount, getPlayerIdleTimeout, getPlayerList, getPlayerNames, getPort, getPreventProxyConnections, getProfileCache, getProfileKeySignatureValidator, getProfilePermissions, getProfiler, getProfileRepository, getProxy, getRecipeManager, getResourceManager, getRunningThread, getScaledTrackingDistance, getScoreboard, getServerDirectory, getServerModName, getServerResourcePack, getServerResources, getServerVersion, getSessionService, getSingleplayerProfile, getSpawnProtectionRadius, getSpawnRadius, getStatus, getStatusJson, getStructureManager, getTickCount, getTickTime, getWorldData, getWorldPath, getWorldScreenshotFile, halt, hasGui, hidesOnlinePlayers, initializeKeyPair, invalidateStatus, isCurrentlySaving, isDemo, isEnforceWhitelist, isFlightAllowed, isNetherEnabled, isPvpAllowed, isReady, isRecordingMetrics, isResourcePackRequired, isRunning, isShutdown, isSingleplayer, isSpawningAnimals, isSpawningMonsters, isStopped, isTimeProfilerRunning, isUnderSpawnProtection, kickUnlistedPlayers, levelKeys, loadLevel, logChatMessage, logIPs, logTickTime, markWorldsDirty, overworld, pollTask, publishServer, registries, registryAccess, reloadResources, repliesToStatus, runServer, saveAllChunks, saveEverything, scheduleExecutables, sendSystemMessage, setDefaultGameType, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFlightAllowed, setId, setLocalIp, setMotd, setPlayerIdleTimeout, setPlayerList, setPort, setPreventProxyConnections, setPvpAllowed, setSingleplayerProfile, setUsesAuthentication, shouldRun, spin, startRecordingMetrics, startTimeProfiler, stopRecordingMetrics, stopServer, stopTimeProfiler, tickChildren, usesAuthentication, wrapRunnableMethods inherited from class net.minecraft.util.thread.ReentrantBlockableEventLooprunningTaskMethods inherited from class net.minecraft.util.thread.BlockableEventLoopdropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, managedBlock, name, profiledMetrics, runAllTasks, submit, submit, submitAsync, tell, waitForTasksMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSourcealwaysAcceptsMethods inherited from interface net.minecraft.util.thread.ProcessorHandleask, askEither
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
PROGRESS_REPORT_INTERVALprivate static final int PROGRESS_REPORT_INTERVAL- See Also:
 
- 
NO_SERVICES
- 
testBatches
- 
spawnPos
- 
TEST_GAME_RULES
- 
WORLD_OPTIONS
- 
testTracker
 
- 
- 
Constructor Details- 
GameTestServerpublic GameTestServer(Thread p_206597_, LevelStorageSource.LevelStorageAccess p_206598_, PackRepository p_206599_, WorldStem p_206600_, Collection<GameTestBatch> p_206601_, BlockPos p_206602_) 
 
- 
- 
Method Details- 
createpublic static GameTestServer create(Thread p_206607_, LevelStorageSource.LevelStorageAccess p_206608_, PackRepository p_206609_, Collection<GameTestBatch> p_206610_, BlockPos p_206611_) 
- 
initServerpublic boolean initServer()- Specified by:
- initServerin class- MinecraftServer
 
- 
tickServer- Overrides:
- tickServerin class- MinecraftServer
 
- 
waitUntilNextTickpublic void waitUntilNextTick()- Overrides:
- waitUntilNextTickin class- MinecraftServer
 
- 
fillServerSystemReport- Specified by:
- fillServerSystemReportin class- MinecraftServer
 
- 
onServerExitpublic void onServerExit()- Overrides:
- onServerExitin class- MinecraftServer
 
- 
onServerCrash- Overrides:
- onServerCrashin class- MinecraftServer
 
- 
startTests
- 
haveTestsStartedprivate boolean haveTestsStarted()
- 
isHardcorepublic boolean isHardcore()- Overrides:
- isHardcorein class- MinecraftServer
 
- 
getOperatorUserPermissionLevelpublic int getOperatorUserPermissionLevel()- Specified by:
- getOperatorUserPermissionLevelin class- MinecraftServer
 
- 
getFunctionCompilationLevelpublic int getFunctionCompilationLevel()- Specified by:
- getFunctionCompilationLevelin class- MinecraftServer
 
- 
shouldRconBroadcastpublic boolean shouldRconBroadcast()- Specified by:
- shouldRconBroadcastin class- MinecraftServer
 
- 
isDedicatedServerpublic boolean isDedicatedServer()- Specified by:
- isDedicatedServerin class- MinecraftServer
 
- 
getRateLimitPacketsPerSecondpublic int getRateLimitPacketsPerSecond()- Specified by:
- getRateLimitPacketsPerSecondin class- MinecraftServer
 
- 
isEpollEnabledpublic boolean isEpollEnabled()- Specified by:
- isEpollEnabledin class- MinecraftServer
 
- 
isCommandBlockEnabledpublic boolean isCommandBlockEnabled()- Specified by:
- isCommandBlockEnabledin class- MinecraftServer
 
- 
isPublishedpublic boolean isPublished()- Specified by:
- isPublishedin class- MinecraftServer
 
- 
shouldInformAdminspublic boolean shouldInformAdmins()- Specified by:
- shouldInformAdminsin interface- CommandSource
- Specified by:
- shouldInformAdminsin class- MinecraftServer
 
- 
isSingleplayerOwnerpublic boolean isSingleplayerOwner(com.mojang.authlib.GameProfile p_177617_) - Specified by:
- isSingleplayerOwnerin class- MinecraftServer
 
 
-