类 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
- 所有已实现的接口:
AutoCloseable
,Executor
,CommandSource
,ProfilerMeasured
,ProcessorHandle<TickTask>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.server.MinecraftServer
MinecraftServer.ReloadableResources, MinecraftServer.ServerResourcePackInfo
-
字段概要
字段修饰符和类型字段说明private static final org.slf4j.Logger
private static final Services
private static final int
private final BlockPos
private static final GameRules
private final List<GameTestBatch>
private MultipleTestTracker
private static final WorldOptions
从类继承的字段 net.minecraft.server.MinecraftServer
ABSOLUTE_MAX_WORLD_SIZE, ANONYMOUS_PLAYER_PROFILE, DEMO_SETTINGS, MS_PER_TICK, nextTickTime, playerDataStorage, proxy, services, START_CHUNK_RADIUS, storageSource, tickTimes, VANILLA_BRAND, worldData
从接口继承的字段 net.minecraft.commands.CommandSource
NULL
-
构造器概要
构造器构造器说明GameTestServer
(Thread pServerThread, LevelStorageSource.LevelStorageAccess pStorageSource, PackRepository pPackRepository, WorldStem pWorldStem, Collection<GameTestBatch> pTestBatches, BlockPos pSpawnPos) -
方法概要
修饰符和类型方法说明static GameTestServer
create
(Thread pServerThread, LevelStorageSource.LevelStorageAccess pStorageSource, PackRepository pPackRepository, Collection<GameTestBatch> pTestBatches, BlockPos pSpawnPos) fillServerSystemReport
(SystemReport pReport) int
int
int
private boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isSingleplayerOwner
(com.mojang.authlib.GameProfile pProfile) void
onServerCrash
(CrashReport pReport) void
boolean
boolean
private void
startTests
(ServerLevel pServerLevel) void
tickServer
(BooleanSupplier pHasTimeLeft) void
从类继承的方法 net.minecraft.server.MinecraftServer
acceptsFailure, 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, getFrameTimer, 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, 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, wrapRunnable
从类继承的方法 net.minecraft.util.thread.ReentrantBlockableEventLoop
runningTask
从类继承的方法 net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, managedBlock, name, profiledMetrics, runAllTasks, submit, submit, submitAsync, tell, waitForTasks
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.commands.CommandSource
alwaysAccepts
从接口继承的方法 net.minecraft.util.thread.ProcessorHandle
ask, askEither
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
PROGRESS_REPORT_INTERVAL
private static final int PROGRESS_REPORT_INTERVAL- 另请参阅:
-
NO_SERVICES
-
testBatches
-
spawnPos
-
TEST_GAME_RULES
-
WORLD_OPTIONS
-
testTracker
-
-
构造器详细资料
-
GameTestServer
public GameTestServer(Thread pServerThread, LevelStorageSource.LevelStorageAccess pStorageSource, PackRepository pPackRepository, WorldStem pWorldStem, Collection<GameTestBatch> pTestBatches, BlockPos pSpawnPos)
-
-
方法详细资料
-
create
public static GameTestServer create(Thread pServerThread, LevelStorageSource.LevelStorageAccess pStorageSource, PackRepository pPackRepository, Collection<GameTestBatch> pTestBatches, BlockPos pSpawnPos) -
initServer
public boolean initServer()- 指定者:
initServer
在类中MinecraftServer
-
tickServer
- 覆盖:
tickServer
在类中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 pProfile) - 指定者:
isSingleplayerOwner
在类中MinecraftServer
-