Package net.minecraft.test
Class TestServer
- All Implemented Interfaces:
AutoCloseable,Executor,QueryableServer,CommandOutput,MessageListener<ServerTask>,SampleableExecutor
- Mappings:
Namespace Name official sbintermediary net/minecraft/class_6306named net/minecraft/test/TestServer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.server.MinecraftServer
MinecraftServer.ServerResourcePackProperties -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<GameTestBatch> private final MultiValueDebugSampleLogImplprivate static final GameRulesprivate static final Loggerprivate static final ApiServicesprivate final BlockPosprivate static final intprivate final Stopwatchprivate static final GeneratorOptionsprivate static final intprivate final List<TestFunction> Fields inherited from class net.minecraft.server.MinecraftServer
ANONYMOUS_PLAYER_PROFILE, apiServices, DEMO_LEVEL_INFO, MAX_WORLD_BORDER_RADIUS, proxy, saveHandler, saveProperties, session, VANILLAFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTestServer(Thread serverThread, LevelStorage.Session session, ResourcePackManager dataPackManager, SaveLoader saveLoader, Collection<TestFunction> testFunctions, BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionaddExtraSystemDetails(SystemDetails details) booleanSpecifies whether command blocks can execute commands on the server.static TestServercreate(Thread thread, LevelStorage.Session session, ResourcePackManager resourcePackManager, Collection<TestFunction> 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.booleanbooleanbooleanvoidtick(BooleanSupplier shouldKeepTicking) Methods inherited from class net.minecraft.server.MinecraftServer
acceptsStatusQuery, acceptsTransfers, addServerGuiTickable, addSystemDetails, adjustTrackingDistance, canExecute, close, createFilterer, createTask, createWorlds, dumpProperties, endTickMetrics, executeSync, executeTask, forcePlayerSampleUpdate, forceStopRecorder, generateKeyPair, getAdvancementLoader, getAverageNanosPerTick, getAverageTickTime, getBossBarManager, getCombinedDynamicRegistries, getCommandFunctionManager, getCommandManager, getCommandSource, getCurrentPlayerCount, getDataCommandStorage, getDataFixer, getDataPackManager, getDefaultGameMode, getFile, getForcedGameMode, getGameProfileRepo, getGameRules, getHostProfile, getIconFile, getKeyPair, getLootManager, getMaxChainedNeighborUpdates, getMaxPlayerCount, getMaxWorldBorderRadius, getMessageDecorator, 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, getTickManager, getTicks, getTickTimes, getTimeReference, getUserCache, getVersion, getWorld, getWorldRegistryKeys, getWorlds, hasGui, hideOnlinePlayers, isDebugRunning, isDemo, isEnforceWhitelist, isFlightEnabled, isLoading, isMonsterSpawningEnabled, isNetherAllowed, isOnlineMode, isPaused, 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, shouldLogIps, shouldPreventProxyConnections, shouldReceiveFeedback, shouldSpawnAnimals, shouldSpawnNpcs, shouldTrackOutput, shutdown, startDebug, startServer, stop, stopDebug, stopRecorder, subscribeToDebugSample, syncChunkWrites, tickWorlds, updateAutosaveTicks, updateDifficulty, waitForTasksMethods inherited from class net.minecraft.util.thread.ReentrantThreadExecutor
hasRunningTasksMethods inherited from class net.minecraft.util.thread.ThreadExecutor
cancelTasks, createSamplers, execute, getName, getTaskCount, isOnThread, runTasks, runTasks, send, submit, submit, submitAndJoinMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.util.thread.MessageListener
ask, askFallible
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official kLsb;k:Lorg/slf4j/Logger;intermediary field_33156Lnet/minecraft/class_6306;field_33156:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/test/TestServer;LOGGER:Lorg/slf4j/Logger;
-
RESULT_STRING_LOG_INTERVAL
private static final int RESULT_STRING_LOG_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector official lLsb;l:Iintermediary field_33157Lnet/minecraft/class_6306;field_33157:Inamed RESULT_STRING_LOG_INTERVALLnet/minecraft/test/TestServer;RESULT_STRING_LOG_INTERVAL:I
-
TEST_POS_XZ_RANGE
private static final int TEST_POS_XZ_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official mLsb;m:Iintermediary field_47175Lnet/minecraft/class_6306;field_47175:Inamed TEST_POS_XZ_RANGELnet/minecraft/test/TestServer;TEST_POS_XZ_RANGE:I
-
NONE_API_SERVICES
- Mappings:
Namespace Name Mixin selector official nLsb;n:Laka;intermediary field_39441Lnet/minecraft/class_6306;field_39441:Lnet/minecraft/class_7497;named NONE_API_SERVICESLnet/minecraft/test/TestServer;NONE_API_SERVICES:Lnet/minecraft/util/ApiServices;
-
GAME_RULES
- Mappings:
Namespace Name Mixin selector official tLsb;t:Lcwx;intermediary field_33160Lnet/minecraft/class_6306;field_33160:Lnet/minecraft/class_1928;named GAME_RULESLnet/minecraft/test/TestServer;GAME_RULES:Lnet/minecraft/world/GameRules;
-
TEST_LEVEL
- Mappings:
Namespace Name Mixin selector official uLsb;u:Ldtm;intermediary field_33161Lnet/minecraft/class_6306;field_33161:Lnet/minecraft/class_5285;named TEST_LEVELLnet/minecraft/test/TestServer;TEST_LEVEL:Lnet/minecraft/world/gen/GeneratorOptions;
-
debugSampleLog
- Mappings:
Namespace Name Mixin selector official oLsb;o:Lbix;intermediary field_48984Lnet/minecraft/class_6306;field_48984:Lnet/minecraft/class_9191;named debugSampleLogLnet/minecraft/test/TestServer;debugSampleLog:Lnet/minecraft/util/profiler/MultiValueDebugSampleLogImpl;
-
batches
- Mappings:
Namespace Name Mixin selector official pLsb;p:Ljava/util/List;intermediary field_33158Lnet/minecraft/class_6306;field_33158:Ljava/util/List;named batchesLnet/minecraft/test/TestServer;batches:Ljava/util/List;
-
testFunctions
- Mappings:
Namespace Name Mixin selector official qLsb;q:Ljava/util/List;intermediary field_48493Lnet/minecraft/class_6306;field_48493:Ljava/util/List;named testFunctionsLnet/minecraft/test/TestServer;testFunctions:Ljava/util/List;
-
pos
- Mappings:
Namespace Name Mixin selector official rLsb;r:Lib;intermediary field_33159Lnet/minecraft/class_6306;field_33159:Lnet/minecraft/class_2338;named posLnet/minecraft/test/TestServer;pos:Lnet/minecraft/util/math/BlockPos;
-
stopwatch
- Mappings:
Namespace Name Mixin selector official sLsb;s:Lcom/google/common/base/Stopwatch;intermediary field_48494Lnet/minecraft/class_6306;field_48494:Lcom/google/common/base/Stopwatch;named stopwatchLnet/minecraft/test/TestServer;stopwatch:Lcom/google/common/base/Stopwatch;
-
testSet
- Mappings:
Namespace Name Mixin selector official vLsb;v:Lsh;intermediary field_33162Lnet/minecraft/class_6306;field_33162:Lnet/minecraft/class_4524;named testSetLnet/minecraft/test/TestServer;testSet:Lnet/minecraft/test/TestSet;
-
-
Constructor Details
-
TestServer
private TestServer(Thread serverThread, LevelStorage.Session session, ResourcePackManager dataPackManager, SaveLoader saveLoader, Collection<TestFunction> testFunctions, BlockPos pos) - Mappings:
Namespace Name Mixin selector official <init>Lsb;<init>(Ljava/lang/Thread;Lekm$c;Larz;Lakd;Ljava/util/Collection;Lib;)Vintermediary <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;)Vnamed <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
-
create
public static TestServer create(Thread thread, LevelStorage.Session session, ResourcePackManager resourcePackManager, Collection<TestFunction> batches, BlockPos pos) - Mappings:
Namespace Name Mixin selector official aLsb;a(Ljava/lang/Thread;Lekm$c;Larz;Ljava/util/Collection;Lib;)Lsb;intermediary method_40378Lnet/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 createLnet/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;
-
setupServer
public 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 classMinecraftServer- Returns:
- true if the Minecraft server was successfully setup, false if the server failed to be setup.
- Mappings:
Namespace Name Mixin selector official eLnet/minecraft/server/MinecraftServer;e()Zintermediary method_3823Lnet/minecraft/server/MinecraftServer;method_3823()Znamed setupServerLnet/minecraft/server/MinecraftServer;setupServer()Z
-
tick
- Overrides:
tickin classMinecraftServer- Mappings:
Namespace Name Mixin selector official aLnet/minecraft/server/MinecraftServer;a(Ljava/util/function/BooleanSupplier;)Vintermediary method_3748Lnet/minecraft/server/MinecraftServer;method_3748(Ljava/util/function/BooleanSupplier;)Vnamed tickLnet/minecraft/server/MinecraftServer;tick(Ljava/util/function/BooleanSupplier;)V
-
getDebugSampleLog
- Specified by:
getDebugSampleLogin classMinecraftServer- Mappings:
Namespace Name Mixin selector official fLnet/minecraft/server/MinecraftServer;f()Lbja;intermediary method_56593Lnet/minecraft/server/MinecraftServer;method_56593()Lnet/minecraft/class_8743;named getDebugSampleLogLnet/minecraft/server/MinecraftServer;getDebugSampleLog()Lnet/minecraft/util/profiler/log/DebugSampleLog;
-
shouldPushTickTimeLog
public boolean shouldPushTickTimeLog()- Specified by:
shouldPushTickTimeLogin classMinecraftServer- Mappings:
Namespace Name Mixin selector official gLnet/minecraft/server/MinecraftServer;g()Zintermediary method_56626Lnet/minecraft/server/MinecraftServer;method_56626()Znamed shouldPushTickTimeLogLnet/minecraft/server/MinecraftServer;shouldPushTickTimeLog()Z
-
runTasksTillTickEnd
public void runTasksTillTickEnd()- Overrides:
runTasksTillTickEndin classMinecraftServer- Mappings:
Namespace Name Mixin selector official v_Lnet/minecraft/server/MinecraftServer;v_()Vintermediary method_16208Lnet/minecraft/server/MinecraftServer;method_16208()Vnamed runTasksTillTickEndLnet/minecraft/server/MinecraftServer;runTasksTillTickEnd()V
-
addExtraSystemDetails
- Specified by:
addExtraSystemDetailsin classMinecraftServer- Mappings:
Namespace Name Mixin selector official aLnet/minecraft/server/MinecraftServer;a(Lab;)Lab;intermediary method_3859Lnet/minecraft/server/MinecraftServer;method_3859(Lnet/minecraft/class_6396;)Lnet/minecraft/class_6396;named addExtraSystemDetailsLnet/minecraft/server/MinecraftServer;addExtraSystemDetails(Lnet/minecraft/util/SystemDetails;)Lnet/minecraft/util/SystemDetails;
-
exit
public void exit()- Overrides:
exitin classMinecraftServer- Mappings:
Namespace Name Mixin selector official iLnet/minecraft/server/MinecraftServer;i()Vintermediary method_3821Lnet/minecraft/server/MinecraftServer;method_3821()Vnamed exitLnet/minecraft/server/MinecraftServer;exit()V
-
setCrashReport
- Overrides:
setCrashReportin classMinecraftServer- Mappings:
Namespace Name Mixin selector official aLnet/minecraft/server/MinecraftServer;a(Lo;)Vintermediary method_3744Lnet/minecraft/server/MinecraftServer;method_3744(Lnet/minecraft/class_128;)Vnamed setCrashReportLnet/minecraft/server/MinecraftServer;setCrashReport(Lnet/minecraft/util/crash/CrashReport;)V
-
runTestBatches
- Mappings:
Namespace Name Mixin selector official bLsb;b(Lapf;)Vintermediary method_36096Lnet/minecraft/class_6306;method_36096(Lnet/minecraft/class_3218;)Vnamed runTestBatchesLnet/minecraft/test/TestServer;runTestBatches(Lnet/minecraft/server/world/ServerWorld;)V
-
isTesting
private boolean isTesting()- Mappings:
Namespace Name Mixin selector official bpLsb;bp()Zintermediary method_36098Lnet/minecraft/class_6306;method_36098()Znamed isTestingLnet/minecraft/test/TestServer;isTesting()Z
-
isHardcore
public boolean isHardcore()- Overrides:
isHardcorein classMinecraftServer- Mappings:
Namespace Name Mixin selector official jLnet/minecraft/server/MinecraftServer;j()Zintermediary method_3754Lnet/minecraft/server/MinecraftServer;method_3754()Znamed isHardcoreLnet/minecraft/server/MinecraftServer;isHardcore()Z
-
getOpPermissionLevel
public int getOpPermissionLevel()- Specified by:
getOpPermissionLevelin classMinecraftServer- Mappings:
Namespace Name Mixin selector official kLnet/minecraft/server/MinecraftServer;k()Iintermediary method_3798Lnet/minecraft/server/MinecraftServer;method_3798()Inamed getOpPermissionLevelLnet/minecraft/server/MinecraftServer;getOpPermissionLevel()I
-
getFunctionPermissionLevel
public int getFunctionPermissionLevel()- Specified by:
getFunctionPermissionLevelin classMinecraftServer- Mappings:
Namespace Name Mixin selector official lLnet/minecraft/server/MinecraftServer;l()Iintermediary method_21714Lnet/minecraft/server/MinecraftServer;method_21714()Inamed getFunctionPermissionLevelLnet/minecraft/server/MinecraftServer;getFunctionPermissionLevel()I
-
shouldBroadcastRconToOps
public boolean shouldBroadcastRconToOps()- Specified by:
shouldBroadcastRconToOpsin classMinecraftServer- Mappings:
Namespace Name Mixin selector official mLnet/minecraft/server/MinecraftServer;m()Zintermediary method_3732Lnet/minecraft/server/MinecraftServer;method_3732()Znamed shouldBroadcastRconToOpsLnet/minecraft/server/MinecraftServer;shouldBroadcastRconToOps()Z
-
isDedicated
public 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 classMinecraftServer- Mappings:
Namespace Name Mixin selector official nLnet/minecraft/server/MinecraftServer;n()Zintermediary method_3816Lnet/minecraft/server/MinecraftServer;method_3816()Znamed isDedicatedLnet/minecraft/server/MinecraftServer;isDedicated()Z
-
getRateLimit
public int getRateLimit()- Specified by:
getRateLimitin classMinecraftServer- Mappings:
Namespace Name Mixin selector official oLnet/minecraft/server/MinecraftServer;o()Iintermediary method_30612Lnet/minecraft/server/MinecraftServer;method_30612()Inamed getRateLimitLnet/minecraft/server/MinecraftServer;getRateLimit()I
-
isUsingNativeTransport
public boolean isUsingNativeTransport()- Specified by:
isUsingNativeTransportin classMinecraftServer- Mappings:
Namespace Name Mixin selector official pLnet/minecraft/server/MinecraftServer;p()Zintermediary method_3759Lnet/minecraft/server/MinecraftServer;method_3759()Znamed isUsingNativeTransportLnet/minecraft/server/MinecraftServer;isUsingNativeTransport()Z
-
areCommandBlocksEnabled
public boolean areCommandBlocksEnabled()Specifies whether command blocks can execute commands on the server.- Specified by:
areCommandBlocksEnabledin classMinecraftServer- Mappings:
Namespace Name Mixin selector official qLnet/minecraft/server/MinecraftServer;q()Zintermediary method_3812Lnet/minecraft/server/MinecraftServer;method_3812()Znamed areCommandBlocksEnabledLnet/minecraft/server/MinecraftServer;areCommandBlocksEnabled()Z
-
isRemote
public boolean isRemote()- Specified by:
isRemotein classMinecraftServer- Mappings:
Namespace Name Mixin selector official rLnet/minecraft/server/MinecraftServer;r()Zintermediary method_3860Lnet/minecraft/server/MinecraftServer;method_3860()Znamed isRemoteLnet/minecraft/server/MinecraftServer;isRemote()Z
-
shouldBroadcastConsoleToOps
public boolean shouldBroadcastConsoleToOps()- Specified by:
shouldBroadcastConsoleToOpsin interfaceCommandOutput- Specified by:
shouldBroadcastConsoleToOpsin classMinecraftServer- Mappings:
Namespace Name Mixin selector official U_Ldt;U_()Zintermediary method_9201Lnet/minecraft/class_2165;method_9201()Znamed shouldBroadcastConsoleToOpsLnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
-
isHost
public boolean isHost(com.mojang.authlib.GameProfile profile) - Specified by:
isHostin classMinecraftServer- Mappings:
Namespace Name Mixin selector official aLnet/minecraft/server/MinecraftServer;a(Lcom/mojang/authlib/GameProfile;)Zintermediary method_19466Lnet/minecraft/server/MinecraftServer;method_19466(Lcom/mojang/authlib/GameProfile;)Znamed isHostLnet/minecraft/server/MinecraftServer;isHost(Lcom/mojang/authlib/GameProfile;)Z
-