Package net.minecraft.test
Class TestServer
java.lang.Object
net.minecraft.util.thread.ThreadExecutor<R>
net.minecraft.util.thread.ReentrantThreadExecutor<ServerTask>
net.minecraft.server.MinecraftServer
net.minecraft.test.TestServer
- All Implemented Interfaces:
- AutoCloseable,- Executor,- CommandOutput,- MessageListener<ServerTask>,- SampleableExecutor
- Mappings:
- Namespace - Name - official - pw- intermediary - net/minecraft/class_6306- named - net/minecraft/test/TestServer
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.server.MinecraftServerMinecraftServer.ServerResourcePackProperties
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<GameTestBatch>private static final GameRulesprivate static final Loggerprivate static final ApiServicesprivate final BlockPosprivate static final intprivate static final GeneratorOptionsFields inherited from class net.minecraft.server.MinecraftServerANONYMOUS_PLAYER_PROFILE, apiServices, DEMO_LEVEL_INFO, field_33206, lastTickLengths, MAX_WORLD_BORDER_RADIUS, proxy, saveHandler, saveProperties, session, START_TICKET_CHUNK_RADIUS, VANILLAFields inherited from interface net.minecraft.server.command.CommandOutputDUMMY
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateTestServer(Thread serverThread, LevelStorage.Session session, ResourcePackManager dataPackManager, SaveLoader saveLoader, Collection<GameTestBatch> batches, BlockPos pos) 
- 
Method SummaryModifier and TypeMethodDescriptionaddExtraSystemDetails(SystemDetails details) booleanSpecifies whether command blocks can execute commands on the server.static TestServercreate(Thread thread, LevelStorage.Session session, ResourcePackManager resourcePackManager, Collection<GameTestBatch> batches, BlockPos pos) voidexit()intintintbooleanChecks whether this server is a dedicated server.booleanbooleanisHost(com.mojang.authlib.GameProfile profile) booleanisRemote()private booleanbooleanvoidprivate voidrunTestBatches(ServerWorld world) voidsetCrashReport(CrashReport report) booleanSetups a Minecraft server to be ready for players to connect.booleanbooleanvoidtick(BooleanSupplier shouldKeepTicking) Methods inherited from class net.minecraft.server.MinecraftServeracceptsStatusQuery, addServerGuiTickable, addSystemDetails, adjustTrackingDistance, canExecute, close, createFilterer, createTask, createWorlds, dumpProperties, executeSync, executeTask, forcePlayerSampleUpdate, forceStopRecorder, generateKeyPair, getAdvancementLoader, getBossBarManager, getCombinedDynamicRegistries, getCommandFunctionManager, getCommandManager, getCommandSource, getCurrentPlayerCount, getDataCommandStorage, getDataFixer, getDataPackManager, getDefaultGameMode, getFile, getForcedGameMode, getGameProfileRepo, getGameRules, getHostProfile, getIconFile, getKeyPair, getLootManager, getMaxChainedNeighborUpdates, getMaxPlayerCount, getMaxWorldBorderRadius, getMessageDecorator, getMetricsData, getModStatus, getNetworkCompressionThreshold, getNetworkIo, getOverworld, getPermissionLevel, getPlayerIdleTimeout, getPlayerInteractionManager, getPlayerManager, getPlayerNames, getProfiler, getProxy, getRecipeManager, getRegistryManager, getResourceManager, getResourcePackProperties, getRunDirectory, getSavePath, getSaveProperties, getScoreboard, getServerIp, getServerMetadata, getServerModName, getServerMotd, getServerPort, getServicesSignatureVerifier, getSessionService, getSpawnProtectionRadius, getSpawnRadius, getStructureTemplateManager, getThread, getTicks, getTickTime, getTimeReference, getUserCache, getVersion, getWorld, getWorldRegistryKeys, getWorlds, hasGui, hideOnlinePlayers, isDebugRunning, isDemo, isEnforceWhitelist, isFlightEnabled, isLoading, isMonsterSpawningEnabled, isNetherAllowed, isOnlineMode, isPvpEnabled, isRecorderActive, isRunning, isSaving, isSingleplayer, isSpawnProtected, isStopped, isStopping, kickNonWhitelistedPlayers, loadDataPacks, loadWorld, logChatMessage, openToLan, reloadResources, requireResourcePack, resetRecorder, runServer, runTask, save, saveAll, sendMessage, sendTimeUpdatePackets, setDefaultGameMode, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFlightEnabled, setHostProfile, setMotd, setOnlineMode, setPlayerIdleTimeout, setPlayerManager, setPreventProxyConnections, setPvpEnabled, setServerId, setServerIp, setServerPort, setupRecorder, shouldEnforceSecureProfile, shouldExecuteAsync, shouldPreventProxyConnections, shouldReceiveFeedback, shouldSpawnAnimals, shouldSpawnNpcs, shouldTrackOutput, shutdown, startDebug, startServer, stop, stopDebug, stopRecorder, syncChunkWrites, tickWorlds, updateDifficultyMethods inherited from class net.minecraft.util.thread.ReentrantThreadExecutorhasRunningTasksMethods inherited from class net.minecraft.util.thread.ThreadExecutorcancelTasks, createSamplers, execute, getName, getTaskCount, isOnThread, runTasks, runTasks, send, submit, submit, submitAndJoin, waitForTasksMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutputcannotBeSilencedMethods inherited from interface net.minecraft.util.thread.MessageListenerask, askFallible
- 
Field Details- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - official - n- Lpw;n:Lorg/slf4j/Logger;- intermediary - field_33156- Lnet/minecraft/class_6306;field_33156:Lorg/slf4j/Logger;- named - LOGGER- Lnet/minecraft/test/TestServer;LOGGER:Lorg/slf4j/Logger;
 
- 
RESULT_STRING_LOG_INTERVALprivate static final int RESULT_STRING_LOG_INTERVAL- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - o- Lpw;o:I- intermediary - field_33157- Lnet/minecraft/class_6306;field_33157:I- named - RESULT_STRING_LOG_INTERVAL- Lnet/minecraft/test/TestServer;RESULT_STRING_LOG_INTERVAL:I
 
- 
NONE_API_SERVICES- Mappings:
- Namespace - Name - Mixin selector - official - p- Lpw;p:Ladh;- intermediary - field_39441- Lnet/minecraft/class_6306;field_39441:Lnet/minecraft/class_7497;- named - NONE_API_SERVICES- Lnet/minecraft/test/TestServer;NONE_API_SERVICES:Lnet/minecraft/util/ApiServices;
 
- 
GAME_RULES- Mappings:
- Namespace - Name - Mixin selector - official - s- Lpw;s:Lcmi;- intermediary - field_33160- Lnet/minecraft/class_6306;field_33160:Lnet/minecraft/class_1928;- named - GAME_RULES- Lnet/minecraft/test/TestServer;GAME_RULES:Lnet/minecraft/world/GameRules;
 
- 
TEST_LEVEL- Mappings:
- Namespace - Name - Mixin selector - official - t- Lpw;t:Ldii;- intermediary - field_33161- Lnet/minecraft/class_6306;field_33161:Lnet/minecraft/class_5285;- named - TEST_LEVEL- Lnet/minecraft/test/TestServer;TEST_LEVEL:Lnet/minecraft/world/gen/GeneratorOptions;
 
- 
batches- Mappings:
- Namespace - Name - Mixin selector - official - q- Lpw;q:Ljava/util/List;- intermediary - field_33158- Lnet/minecraft/class_6306;field_33158:Ljava/util/List;- named - batches- Lnet/minecraft/test/TestServer;batches:Ljava/util/List;
 
- 
pos- Mappings:
- Namespace - Name - Mixin selector - official - r- Lpw;r:Lgu;- intermediary - field_33159- Lnet/minecraft/class_6306;field_33159:Lnet/minecraft/class_2338;- named - pos- Lnet/minecraft/test/TestServer;pos:Lnet/minecraft/util/math/BlockPos;
 
- 
testSet- Mappings:
- Namespace - Name - Mixin selector - official - u- Lpw;u:Lqc;- intermediary - field_33162- Lnet/minecraft/class_6306;field_33162:Lnet/minecraft/class_4524;- named - testSet- Lnet/minecraft/test/TestServer;testSet:Lnet/minecraft/test/TestSet;
 
 
- 
- 
Constructor Details- 
TestServerprivate TestServer(Thread serverThread, LevelStorage.Session session, ResourcePackManager dataPackManager, SaveLoader saveLoader, Collection<GameTestBatch> batches, BlockPos pos) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lpw;<init>(Ljava/lang/Thread;Ldyy$c;Laki;Ladk;Ljava/util/Collection;Lgu;)V- intermediary - <init>- Lnet/minecraft/class_6306;<init>(Ljava/lang/Thread;Lnet/minecraft/class_32$class_5143;Lnet/minecraft/class_3283;Lnet/minecraft/class_6904;Ljava/util/Collection;Lnet/minecraft/class_2338;)V- named - <init>- Lnet/minecraft/test/TestServer;<init>(Ljava/lang/Thread;Lnet/minecraft/world/level/storage/LevelStorage$Session;Lnet/minecraft/resource/ResourcePackManager;Lnet/minecraft/server/SaveLoader;Ljava/util/Collection;Lnet/minecraft/util/math/BlockPos;)V
 
 
- 
- 
Method Details- 
createpublic static TestServer create(Thread thread, LevelStorage.Session session, ResourcePackManager resourcePackManager, Collection<GameTestBatch> batches, BlockPos pos) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lpw;a(Ljava/lang/Thread;Ldyy$c;Laki;Ljava/util/Collection;Lgu;)Lpw;- intermediary - method_40378- Lnet/minecraft/class_6306;method_40378(Ljava/lang/Thread;Lnet/minecraft/class_32$class_5143;Lnet/minecraft/class_3283;Ljava/util/Collection;Lnet/minecraft/class_2338;)Lnet/minecraft/class_6306;- named - create- Lnet/minecraft/test/TestServer;create(Ljava/lang/Thread;Lnet/minecraft/world/level/storage/LevelStorage$Session;Lnet/minecraft/resource/ResourcePackManager;Ljava/util/Collection;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/test/TestServer;
 
- 
setupServerpublic boolean setupServer()Setups a Minecraft server to be ready for players to connect. This method does several things including loading server properties and loading worlds.- Specified by:
- setupServerin class- MinecraftServer
- Returns:
- true if the Minecraft server was successfully setup, false if the server failed to be setup.
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lnet/minecraft/server/MinecraftServer;e()Z- intermediary - method_3823- Lnet/minecraft/server/MinecraftServer;method_3823()Z- named - setupServer- Lnet/minecraft/server/MinecraftServer;setupServer()Z
 
- 
tick- Overrides:
- tickin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lnet/minecraft/server/MinecraftServer;a(Ljava/util/function/BooleanSupplier;)V- intermediary - method_3748- Lnet/minecraft/server/MinecraftServer;method_3748(Ljava/util/function/BooleanSupplier;)V- named - tick- Lnet/minecraft/server/MinecraftServer;tick(Ljava/util/function/BooleanSupplier;)V
 
- 
runTasksTillTickEndpublic void runTasksTillTickEnd()- Overrides:
- runTasksTillTickEndin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - p_- Lnet/minecraft/server/MinecraftServer;p_()V- intermediary - method_16208- Lnet/minecraft/server/MinecraftServer;method_16208()V- named - runTasksTillTickEnd- Lnet/minecraft/server/MinecraftServer;runTasksTillTickEnd()V
 
- 
addExtraSystemDetails- Specified by:
- addExtraSystemDetailsin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lnet/minecraft/server/MinecraftServer;a(Lab;)Lab;- intermediary - method_3859- Lnet/minecraft/server/MinecraftServer;method_3859(Lnet/minecraft/class_6396;)Lnet/minecraft/class_6396;- named - addExtraSystemDetails- Lnet/minecraft/server/MinecraftServer;addExtraSystemDetails(Lnet/minecraft/util/SystemDetails;)Lnet/minecraft/util/SystemDetails;
 
- 
exitpublic void exit()- Overrides:
- exitin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - g- Lnet/minecraft/server/MinecraftServer;g()V- intermediary - method_3821- Lnet/minecraft/server/MinecraftServer;method_3821()V- named - exit- Lnet/minecraft/server/MinecraftServer;exit()V
 
- 
setCrashReport- Overrides:
- setCrashReportin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lnet/minecraft/server/MinecraftServer;a(Lo;)V- intermediary - method_3744- Lnet/minecraft/server/MinecraftServer;method_3744(Lnet/minecraft/class_128;)V- named - setCrashReport- Lnet/minecraft/server/MinecraftServer;setCrashReport(Lnet/minecraft/util/crash/CrashReport;)V
 
- 
runTestBatches- Mappings:
- Namespace - Name - Mixin selector - official - b- Lpw;b(Laif;)V- intermediary - method_36096- Lnet/minecraft/class_6306;method_36096(Lnet/minecraft/class_3218;)V- named - runTestBatches- Lnet/minecraft/test/TestServer;runTestBatches(Lnet/minecraft/server/world/ServerWorld;)V
 
- 
isTestingprivate boolean isTesting()- Mappings:
- Namespace - Name - Mixin selector - official - bf- Lpw;bf()Z- intermediary - method_36098- Lnet/minecraft/class_6306;method_36098()Z- named - isTesting- Lnet/minecraft/test/TestServer;isTesting()Z
 
- 
isHardcorepublic boolean isHardcore()- Overrides:
- isHardcorein class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - h- Lnet/minecraft/server/MinecraftServer;h()Z- intermediary - method_3754- Lnet/minecraft/server/MinecraftServer;method_3754()Z- named - isHardcore- Lnet/minecraft/server/MinecraftServer;isHardcore()Z
 
- 
getOpPermissionLevelpublic int getOpPermissionLevel()- Specified by:
- getOpPermissionLevelin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - i- Lnet/minecraft/server/MinecraftServer;i()I- intermediary - method_3798- Lnet/minecraft/server/MinecraftServer;method_3798()I- named - getOpPermissionLevel- Lnet/minecraft/server/MinecraftServer;getOpPermissionLevel()I
 
- 
getFunctionPermissionLevelpublic int getFunctionPermissionLevel()- Specified by:
- getFunctionPermissionLevelin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - j- Lnet/minecraft/server/MinecraftServer;j()I- intermediary - method_21714- Lnet/minecraft/server/MinecraftServer;method_21714()I- named - getFunctionPermissionLevel- Lnet/minecraft/server/MinecraftServer;getFunctionPermissionLevel()I
 
- 
shouldBroadcastRconToOpspublic boolean shouldBroadcastRconToOps()- Specified by:
- shouldBroadcastRconToOpsin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - k- Lnet/minecraft/server/MinecraftServer;k()Z- intermediary - method_3732- Lnet/minecraft/server/MinecraftServer;method_3732()Z- named - shouldBroadcastRconToOps- Lnet/minecraft/server/MinecraftServer;shouldBroadcastRconToOps()Z
 
- 
isDedicatedpublic boolean isDedicated()Checks whether this server is a dedicated server.A dedicated server refers to a Minecraft server implementation which is detached from a parent Minecraft client process. A dedicated Minecraft server only accepts remote connections. - Specified by:
- isDedicatedin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - l- Lnet/minecraft/server/MinecraftServer;l()Z- intermediary - method_3816- Lnet/minecraft/server/MinecraftServer;method_3816()Z- named - isDedicated- Lnet/minecraft/server/MinecraftServer;isDedicated()Z
 
- 
getRateLimitpublic int getRateLimit()- Specified by:
- getRateLimitin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - m- Lnet/minecraft/server/MinecraftServer;m()I- intermediary - method_30612- Lnet/minecraft/server/MinecraftServer;method_30612()I- named - getRateLimit- Lnet/minecraft/server/MinecraftServer;getRateLimit()I
 
- 
isUsingNativeTransportpublic boolean isUsingNativeTransport()- Specified by:
- isUsingNativeTransportin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - n- Lnet/minecraft/server/MinecraftServer;n()Z- intermediary - method_3759- Lnet/minecraft/server/MinecraftServer;method_3759()Z- named - isUsingNativeTransport- Lnet/minecraft/server/MinecraftServer;isUsingNativeTransport()Z
 
- 
areCommandBlocksEnabledpublic boolean areCommandBlocksEnabled()Specifies whether command blocks can execute commands on the server.- Specified by:
- areCommandBlocksEnabledin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - o- Lnet/minecraft/server/MinecraftServer;o()Z- intermediary - method_3812- Lnet/minecraft/server/MinecraftServer;method_3812()Z- named - areCommandBlocksEnabled- Lnet/minecraft/server/MinecraftServer;areCommandBlocksEnabled()Z
 
- 
isRemotepublic boolean isRemote()- Specified by:
- isRemotein class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - p- Lnet/minecraft/server/MinecraftServer;p()Z- intermediary - method_3860- Lnet/minecraft/server/MinecraftServer;method_3860()Z- named - isRemote- Lnet/minecraft/server/MinecraftServer;isRemote()Z
 
- 
shouldBroadcastConsoleToOpspublic boolean shouldBroadcastConsoleToOps()- Specified by:
- shouldBroadcastConsoleToOpsin interface- CommandOutput
- Specified by:
- shouldBroadcastConsoleToOpsin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - N_- Ldr;N_()Z- intermediary - method_9201- Lnet/minecraft/class_2165;method_9201()Z- named - shouldBroadcastConsoleToOps- Lnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
 
- 
isHostpublic boolean isHost(com.mojang.authlib.GameProfile profile) - Specified by:
- isHostin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lnet/minecraft/server/MinecraftServer;a(Lcom/mojang/authlib/GameProfile;)Z- intermediary - method_19466- Lnet/minecraft/server/MinecraftServer;method_19466(Lcom/mojang/authlib/GameProfile;)Z- named - isHost- Lnet/minecraft/server/MinecraftServer;isHost(Lcom/mojang/authlib/GameProfile;)Z
 
 
-