Package net.minecraft.test
Class TestServer
- All Implemented Interfaces:
AutoCloseable,Executor,QueryableServer,CommandOutput,ChunkErrorHandler,SampleableExecutor,TaskExecutor<ServerTask>
- Mappings:
Namespace Name named net/minecraft/test/TestServerintermediary net/minecraft/class_6306official ta
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.server.MinecraftServer
MinecraftServer.class_11170, MinecraftServer.ServerResourcePackProperties -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<GameTestBatch> static final FeatureSetprivate static final Loggerprivate static final ApiServicesprivate static final intprivate final Stopwatchstatic final GeneratorOptionsprivate static final intprivate final booleanFields inherited from class net.minecraft.server.MinecraftServer
ANONYMOUS_PLAYER_PROFILE, apiServices, DEMO_LEVEL_INFO, field_59587, gameInstance, gameInstanceForPreparingStartRegion, MAX_WORLD_BORDER_RADIUS, proxy, saveHandler, session, VANILLAFields inherited from class net.minecraft.util.thread.ThreadExecutor
field_52421Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTestServer(Thread serverThread, LevelStorage.Session session, Optional<String> optional, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionaddExtraSystemDetails(SystemDetails details) booleanSpecifies whether command blocks can execute commands on the server.private List<GameTestBatch> batch(ServerWorld world) static TestServercreate(Thread thread, LevelStorage.Session session, Optional<String> optional, boolean bool) voidexit()intintintbooleanChecks whether this server is a dedicated server.booleanisHardcore(GameInstance gameInstance) booleanisHost(com.mojang.authlib.GameProfile profile) booleanisRemote()private booleanbooleanprivate static voidlogFailure(GameTestState state) private static Stream<GameTestState> makeVerificationBatches(RegistryEntry.Reference<TestInstance> instance, ServerWorld world) method_69059(ResourcePackManager resourcePackManager, SaveLoader saveLoader, WorldGenerationProgressListenerFactory worldGenerationProgressListenerFactory) static SaveLoadermethod_70571(ResourcePackManager resourcePackManager) voidprivate voidrunTestBatches(ServerWorld world) static Stream<RegistryEntry.Reference<TestInstance>> selectInstances(DynamicRegistryManager registryManager, String selector) voidsetCrashReport(CrashReport report) booleanSetups a Minecraft server to be ready for players to connect.booleanbooleanvoidtick(GameInstance gameInstance, BooleanSupplier booleanSupplier) Methods inherited from class net.minecraft.server.MinecraftServer
acceptsStatusQuery, acceptsTransfers, addServerGuiTickable, addSystemDetails, adjustTrackingDistance, canExecute, checkWorldGenException, close, createFilterer, createTask, dump, dumpProperties, endTickMetrics, executeSync, executeTask, forcePlayerSampleUpdate, forceStopRecorder, generateKeyPair, getAverageNanosPerTick, getAverageTickTime, getCurrentPlayerCount, getDataFixer, getForcedGameMode, getGameInstance, getGameProfileRepo, getHostProfile, getIconFile, getKeyPair, getMaxChainedNeighborUpdates, getMaxPlayerCount, getMaxWorldBorderRadius, getMessageDecorator, getModStatus, getNetworkCompressionThreshold, getNetworkIo, getPath, getPauseWhenEmptySeconds, getPermissionLevel, getPlayerIdleTimeout, getPlayerInteractionManager, getProxy, getResourcePackProperties, getRunDirectory, getSavePath, getServerIp, getServerLinks, getServerMetadata, getServerModName, getServerMotd, getServerPort, getServicesSignatureVerifier, getSessionService, getSpawnProtectionRadius, getSpawnRadius, getThread, getTicks, getTickTimes, getTimeReference, getUserCache, getVersion, getWorkerExecutor, hasGui, hideOnlinePlayers, isDebugRunning, isDemo, isEnforceWhitelist, isFlightEnabled, isLoading, isMonsterSpawningEnabled, isOnlineMode, isPaused, isPvpEnabled, isRecorderActive, isRunning, isSaving, isSingleplayer, isSpawnProtected, isStopped, isStopping, isWorldAllowed, kickNonWhitelistedPlayers, logChatMessage, method_70551, onChunkLoadFailure, onChunkSaveFailure, onPacketException, openToLan, reloadNetworkForEveryone, requireResourcePack, resetRecorder, runServer, runTask, runTasks, saveAll, sendMessage, setDefaultGameMode, setDemo, setEnforceWhitelist, setFlightEnabled, setHostProfile, setMotd, setOnlineMode, setPlayerIdleTimeout, setPreventProxyConnections, setPvpEnabled, setServerId, setServerIp, setServerPort, setupRecorder, setWorldGenException, shouldEnforceSecureProfile, shouldExecuteAsync, shouldLogIps, shouldPreventProxyConnections, shouldReceiveFeedback, shouldTrackOutput, shutdown, startDebug, startServer, stop, stopDebug, stopRecorder, subscribeToDebugSample, syncChunkWrites, tickNetworkIo, tickWorlds, updateAutosaveTicks, updateDifficulty, waitForPrepareStartRegion, waitForTasksMethods inherited from class net.minecraft.util.thread.ReentrantThreadExecutor
hasRunningTasksMethods inherited from class net.minecraft.util.thread.ThreadExecutor
cancelTasks, createSamplers, execute, getName, getTaskCount, isMemoryError, isOnThread, 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.world.ChunkErrorHandler
onChunkMisplacementMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.util.thread.TaskExecutor
executeAsync
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/test/TestServer;LOGGER:Lorg/slf4j/Logger;intermediary field_33156Lnet/minecraft/class_6306;field_33156:Lorg/slf4j/Logger;official pLta;p:Lorg/slf4j/Logger;
-
RESULT_STRING_LOG_INTERVAL
private static final int RESULT_STRING_LOG_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named RESULT_STRING_LOG_INTERVALLnet/minecraft/test/TestServer;RESULT_STRING_LOG_INTERVAL:Iintermediary field_33157Lnet/minecraft/class_6306;field_33157:Iofficial qLta;q:I
-
TEST_POS_XZ_RANGE
private static final int TEST_POS_XZ_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named TEST_POS_XZ_RANGELnet/minecraft/test/TestServer;TEST_POS_XZ_RANGE:Iintermediary field_47175Lnet/minecraft/class_6306;field_47175:Iofficial rLta;r:I
-
NONE_API_SERVICES
- Mappings:
Namespace Name Mixin selector named NONE_API_SERVICESLnet/minecraft/test/TestServer;NONE_API_SERVICES:Lnet/minecraft/util/ApiServices;intermediary field_39441Lnet/minecraft/class_6306;field_39441:Lnet/minecraft/class_7497;official sLta;s:Lamy;
-
ENABLED_FEATURES
- Mappings:
Namespace Name Mixin selector named ENABLED_FEATURESLnet/minecraft/test/TestServer;ENABLED_FEATURES:Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary field_53734Lnet/minecraft/class_6306;field_53734:Lnet/minecraft/class_7699;official bLta;b:Lcxp;
-
TEST_LEVEL
- Mappings:
Namespace Name Mixin selector named TEST_LEVELLnet/minecraft/test/TestServer;TEST_LEVEL:Lnet/minecraft/world/gen/GeneratorOptions;intermediary field_33161Lnet/minecraft/class_6306;field_33161:Lnet/minecraft/class_5285;official cLta;c:Lels;
-
tests
- Mappings:
Namespace Name Mixin selector named testsLnet/minecraft/test/TestServer;tests:Ljava/util/Optional;intermediary field_56192Lnet/minecraft/class_6306;field_56192:Ljava/util/Optional;official tLta;t:Ljava/util/Optional;
-
verify
private final boolean verify- Mappings:
Namespace Name Mixin selector named verifyLnet/minecraft/test/TestServer;verify:Zintermediary field_56193Lnet/minecraft/class_6306;field_56193:Zofficial uLta;u:Z
-
batches
- Mappings:
Namespace Name Mixin selector named batchesLnet/minecraft/test/TestServer;batches:Ljava/util/List;intermediary field_33158Lnet/minecraft/class_6306;field_33158:Ljava/util/List;official vLta;v:Ljava/util/List;
-
stopwatch
- Mappings:
Namespace Name Mixin selector named stopwatchLnet/minecraft/test/TestServer;stopwatch:Lcom/google/common/base/Stopwatch;intermediary field_48494Lnet/minecraft/class_6306;field_48494:Lcom/google/common/base/Stopwatch;official wLta;w:Lcom/google/common/base/Stopwatch;
-
testSet
- Mappings:
Namespace Name Mixin selector named testSetLnet/minecraft/test/TestServer;testSet:Lnet/minecraft/test/TestSet;intermediary field_33162Lnet/minecraft/class_6306;field_33162:Lnet/minecraft/class_4524;official xLta;x:Lth;
-
-
Constructor Details
-
TestServer
private TestServer(Thread serverThread, LevelStorage.Session session, Optional<String> optional, boolean bool) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/test/TestServer;<init>(Ljava/lang/Thread;Lnet/minecraft/world/level/storage/LevelStorage$Session;Ljava/util/Optional;Z)Vintermediary <init>Lnet/minecraft/class_6306;<init>(Ljava/lang/Thread;Lnet/minecraft/class_32$class_5143;Ljava/util/Optional;Z)Vofficial <init>Lta;<init>(Ljava/lang/Thread;Lfeg$c;Ljava/util/Optional;Z)V
-
-
Method Details
-
method_70571
- Mappings:
Namespace Name Mixin selector named method_70571Lnet/minecraft/test/TestServer;method_70571(Lnet/minecraft/resource/ResourcePackManager;)Lnet/minecraft/server/SaveLoader;intermediary method_70571Lnet/minecraft/class_6306;method_70571(Lnet/minecraft/class_3283;)Lnet/minecraft/class_6904;official aLta;a(Lavu;)Land;
-
create
public static TestServer create(Thread thread, LevelStorage.Session session, Optional<String> optional, boolean bool) - Mappings:
Namespace Name Mixin selector named createLnet/minecraft/test/TestServer;create(Ljava/lang/Thread;Lnet/minecraft/world/level/storage/LevelStorage$Session;Ljava/util/Optional;Z)Lnet/minecraft/test/TestServer;intermediary method_40378Lnet/minecraft/class_6306;method_40378(Ljava/lang/Thread;Lnet/minecraft/class_32$class_5143;Ljava/util/Optional;Z)Lnet/minecraft/class_6306;official aLta;a(Ljava/lang/Thread;Lfeg$c;Ljava/util/Optional;Z)Lta;
-
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 named setupServerLnet/minecraft/server/MinecraftServer;setupServer()Zintermediary method_3823Lnet/minecraft/server/MinecraftServer;method_3823()Zofficial eLnet/minecraft/server/MinecraftServer;e()Z
-
method_69059
public GameInstance method_69059(ResourcePackManager resourcePackManager, SaveLoader saveLoader, WorldGenerationProgressListenerFactory worldGenerationProgressListenerFactory) - Specified by:
method_69059in classMinecraftServer- Mappings:
Namespace Name Mixin selector named method_69059Lnet/minecraft/server/MinecraftServer;method_69059(Lnet/minecraft/resource/ResourcePackManager;Lnet/minecraft/server/SaveLoader;Lnet/minecraft/server/WorldGenerationProgressListenerFactory;)Lnet/minecraft/server/GameInstance;intermediary method_69059Lnet/minecraft/server/MinecraftServer;method_69059(Lnet/minecraft/class_3283;Lnet/minecraft/class_6904;Lnet/minecraft/class_3950;)Lnet/minecraft/class_10961;official aLnet/minecraft/server/MinecraftServer;a(Lavu;Land;Late;)Lana;
-
batch
- Mappings:
Namespace Name Mixin selector named batchLnet/minecraft/test/TestServer;batch(Lnet/minecraft/server/world/ServerWorld;)Ljava/util/List;intermediary method_66986Lnet/minecraft/class_6306;method_66986(Lnet/minecraft/class_3218;)Ljava/util/List;official bLta;b(Last;)Ljava/util/List;
-
makeVerificationBatches
private static Stream<GameTestState> makeVerificationBatches(RegistryEntry.Reference<TestInstance> instance, ServerWorld world) - Mappings:
Namespace Name Mixin selector named makeVerificationBatchesLnet/minecraft/test/TestServer;makeVerificationBatches(Lnet/minecraft/registry/entry/RegistryEntry$Reference;Lnet/minecraft/server/world/ServerWorld;)Ljava/util/stream/Stream;intermediary method_66984Lnet/minecraft/class_6306;method_66984(Lnet/minecraft/class_6880$class_6883;Lnet/minecraft/class_3218;)Ljava/util/stream/Stream;official aLta;a(Ljh$c;Last;)Ljava/util/stream/Stream;
-
selectInstances
public static Stream<RegistryEntry.Reference<TestInstance>> selectInstances(DynamicRegistryManager registryManager, String selector) - Mappings:
Namespace Name Mixin selector named selectInstancesLnet/minecraft/test/TestServer;selectInstances(Lnet/minecraft/registry/DynamicRegistryManager;Ljava/lang/String;)Ljava/util/stream/Stream;intermediary method_66985Lnet/minecraft/class_6306;method_66985(Lnet/minecraft/class_5455;Ljava/lang/String;)Ljava/util/stream/Stream;official aLta;a(Ljv;Ljava/lang/String;)Ljava/util/stream/Stream;
-
tick
- Overrides:
tickin classMinecraftServer- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/server/MinecraftServer;tick(Lnet/minecraft/server/GameInstance;Ljava/util/function/BooleanSupplier;)Vintermediary method_3748Lnet/minecraft/server/MinecraftServer;method_3748(Lnet/minecraft/class_10961;Ljava/util/function/BooleanSupplier;)Vofficial aLnet/minecraft/server/MinecraftServer;a(Lana;Ljava/util/function/BooleanSupplier;)V
-
logFailure
- Mappings:
Namespace Name Mixin selector named logFailureLnet/minecraft/test/TestServer;logFailure(Lnet/minecraft/test/GameTestState;)Vintermediary method_67486Lnet/minecraft/class_6306;method_67486(Lnet/minecraft/class_4517;)Vofficial aLta;a(Lst;)V
-
method_69060
- Specified by:
method_69060in classMinecraftServer- Mappings:
Namespace Name Mixin selector named method_69060Lnet/minecraft/server/MinecraftServer;method_69060()Lnet/minecraft/util/profiler/log/DebugSampleLog;intermediary method_69060Lnet/minecraft/server/MinecraftServer;method_69060()Lnet/minecraft/class_8743;official fLnet/minecraft/server/MinecraftServer;f()Lbqp;
-
runTasksTillTickEnd
public void runTasksTillTickEnd()- Overrides:
runTasksTillTickEndin classMinecraftServer- Mappings:
Namespace Name Mixin selector named runTasksTillTickEndLnet/minecraft/server/MinecraftServer;runTasksTillTickEnd()Vintermediary method_16208Lnet/minecraft/server/MinecraftServer;method_16208()Vofficial x_Lnet/minecraft/server/MinecraftServer;x_()V
-
addExtraSystemDetails
- Specified by:
addExtraSystemDetailsin classMinecraftServer- Mappings:
Namespace Name Mixin selector named addExtraSystemDetailsLnet/minecraft/server/MinecraftServer;addExtraSystemDetails(Lnet/minecraft/util/SystemDetails;)Lnet/minecraft/util/SystemDetails;intermediary method_3859Lnet/minecraft/server/MinecraftServer;method_3859(Lnet/minecraft/class_6396;)Lnet/minecraft/class_6396;official aLnet/minecraft/server/MinecraftServer;a(Lae;)Lae;
-
exit
public void exit()- Overrides:
exitin classMinecraftServer- Mappings:
Namespace Name Mixin selector named exitLnet/minecraft/server/MinecraftServer;exit()Vintermediary method_3821Lnet/minecraft/server/MinecraftServer;method_3821()Vofficial hLnet/minecraft/server/MinecraftServer;h()V
-
setCrashReport
- Overrides:
setCrashReportin classMinecraftServer- Mappings:
Namespace Name Mixin selector named setCrashReportLnet/minecraft/server/MinecraftServer;setCrashReport(Lnet/minecraft/util/crash/CrashReport;)Vintermediary method_3744Lnet/minecraft/server/MinecraftServer;method_3744(Lnet/minecraft/class_128;)Vofficial aLnet/minecraft/server/MinecraftServer;a(Lp;)V
-
runTestBatches
- Mappings:
Namespace Name Mixin selector named runTestBatchesLnet/minecraft/test/TestServer;runTestBatches(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_36096Lnet/minecraft/class_6306;method_36096(Lnet/minecraft/class_3218;)Vofficial cLta;c(Last;)V
-
isTesting
private boolean isTesting()- Mappings:
Namespace Name Mixin selector named isTestingLnet/minecraft/test/TestServer;isTesting()Zintermediary method_36098Lnet/minecraft/class_6306;method_36098()Zofficial aNLta;aN()Z
-
isHardcore
- Overrides:
isHardcorein classMinecraftServer- Mappings:
Namespace Name Mixin selector named isHardcoreLnet/minecraft/server/MinecraftServer;isHardcore(Lnet/minecraft/server/GameInstance;)Zintermediary method_3754Lnet/minecraft/server/MinecraftServer;method_3754(Lnet/minecraft/class_10961;)Zofficial aLnet/minecraft/server/MinecraftServer;a(Lana;)Z
-
getOpPermissionLevel
public int getOpPermissionLevel()- Specified by:
getOpPermissionLevelin classMinecraftServer- Mappings:
Namespace Name Mixin selector named getOpPermissionLevelLnet/minecraft/server/MinecraftServer;getOpPermissionLevel()Iintermediary method_3798Lnet/minecraft/server/MinecraftServer;method_3798()Iofficial iLnet/minecraft/server/MinecraftServer;i()I
-
getFunctionPermissionLevel
public int getFunctionPermissionLevel()- Specified by:
getFunctionPermissionLevelin classMinecraftServer- Mappings:
Namespace Name Mixin selector named getFunctionPermissionLevelLnet/minecraft/server/MinecraftServer;getFunctionPermissionLevel()Iintermediary method_21714Lnet/minecraft/server/MinecraftServer;method_21714()Iofficial jLnet/minecraft/server/MinecraftServer;j()I
-
shouldBroadcastRconToOps
public boolean shouldBroadcastRconToOps()- Specified by:
shouldBroadcastRconToOpsin classMinecraftServer- Mappings:
Namespace Name Mixin selector named shouldBroadcastRconToOpsLnet/minecraft/server/MinecraftServer;shouldBroadcastRconToOps()Zintermediary method_3732Lnet/minecraft/server/MinecraftServer;method_3732()Zofficial kLnet/minecraft/server/MinecraftServer;k()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 named isDedicatedLnet/minecraft/server/MinecraftServer;isDedicated()Zintermediary method_3816Lnet/minecraft/server/MinecraftServer;method_3816()Zofficial lLnet/minecraft/server/MinecraftServer;l()Z
-
getRateLimit
public int getRateLimit()- Specified by:
getRateLimitin classMinecraftServer- Mappings:
Namespace Name Mixin selector named getRateLimitLnet/minecraft/server/MinecraftServer;getRateLimit()Iintermediary method_30612Lnet/minecraft/server/MinecraftServer;method_30612()Iofficial mLnet/minecraft/server/MinecraftServer;m()I
-
isUsingNativeTransport
public boolean isUsingNativeTransport()- Specified by:
isUsingNativeTransportin classMinecraftServer- Mappings:
Namespace Name Mixin selector named isUsingNativeTransportLnet/minecraft/server/MinecraftServer;isUsingNativeTransport()Zintermediary method_3759Lnet/minecraft/server/MinecraftServer;method_3759()Zofficial nLnet/minecraft/server/MinecraftServer;n()Z
-
areCommandBlocksEnabled
public boolean areCommandBlocksEnabled()Specifies whether command blocks can execute commands on the server.- Specified by:
areCommandBlocksEnabledin classMinecraftServer- Mappings:
Namespace Name Mixin selector named areCommandBlocksEnabledLnet/minecraft/server/MinecraftServer;areCommandBlocksEnabled()Zintermediary method_3812Lnet/minecraft/server/MinecraftServer;method_3812()Zofficial oLnet/minecraft/server/MinecraftServer;o()Z
-
isRemote
public boolean isRemote()- Specified by:
isRemotein classMinecraftServer- Mappings:
Namespace Name Mixin selector named isRemoteLnet/minecraft/server/MinecraftServer;isRemote()Zintermediary method_3860Lnet/minecraft/server/MinecraftServer;method_3860()Zofficial pLnet/minecraft/server/MinecraftServer;p()Z
-
shouldBroadcastConsoleToOps
public boolean shouldBroadcastConsoleToOps()- Specified by:
shouldBroadcastConsoleToOpsin interfaceCommandOutput- Specified by:
shouldBroadcastConsoleToOpsin classMinecraftServer- Mappings:
Namespace Name Mixin selector named shouldBroadcastConsoleToOpsLnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Zintermediary method_9201Lnet/minecraft/class_2165;method_9201()Zofficial cLek;c()Z
-
isHost
public boolean isHost(com.mojang.authlib.GameProfile profile) - Specified by:
isHostin classMinecraftServer- Mappings:
Namespace Name Mixin selector named isHostLnet/minecraft/server/MinecraftServer;isHost(Lcom/mojang/authlib/GameProfile;)Zintermediary method_19466Lnet/minecraft/server/MinecraftServer;method_19466(Lcom/mojang/authlib/GameProfile;)Zofficial aLnet/minecraft/server/MinecraftServer;a(Lcom/mojang/authlib/GameProfile;)Z
-