Class TestServer

All Implemented Interfaces:
AutoCloseable, Executor, QueryableServer, CommandOutput, ChunkErrorHandler, MessageListener<ServerTask>, SampleableExecutor

public class TestServer extends MinecraftServer
Mappings:
Namespace Name
named net/minecraft/test/TestServer
intermediary net/minecraft/class_6306
official tc
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/test/TestServer;LOGGER:Lorg/slf4j/Logger;
      intermediary field_33156 Lnet/minecraft/class_6306;field_33156:Lorg/slf4j/Logger;
      official k Ltc;k: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_INTERVAL Lnet/minecraft/test/TestServer;RESULT_STRING_LOG_INTERVAL:I
      intermediary field_33157 Lnet/minecraft/class_6306;field_33157:I
      official l Ltc;l:I
    • TEST_POS_XZ_RANGE

      private static final int TEST_POS_XZ_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TEST_POS_XZ_RANGE Lnet/minecraft/test/TestServer;TEST_POS_XZ_RANGE:I
      intermediary field_47175 Lnet/minecraft/class_6306;field_47175:I
      official m Ltc;m:I
    • NONE_API_SERVICES

      private static final ApiServices NONE_API_SERVICES
      Mappings:
      Namespace Name Mixin selector
      named NONE_API_SERVICES Lnet/minecraft/test/TestServer;NONE_API_SERVICES:Lnet/minecraft/util/ApiServices;
      intermediary field_39441 Lnet/minecraft/class_6306;field_39441:Lnet/minecraft/class_7497;
      official n Ltc;n:Lalm;
    • GAME_RULES

      private static final GameRules GAME_RULES
      Mappings:
      Namespace Name Mixin selector
      named GAME_RULES Lnet/minecraft/test/TestServer;GAME_RULES:Lnet/minecraft/world/GameRules;
      intermediary field_33160 Lnet/minecraft/class_6306;field_33160:Lnet/minecraft/class_1928;
      official t Ltc;t:Ldcs;
    • TEST_LEVEL

      private static final GeneratorOptions TEST_LEVEL
      Mappings:
      Namespace Name Mixin selector
      named TEST_LEVEL Lnet/minecraft/test/TestServer;TEST_LEVEL:Lnet/minecraft/world/gen/GeneratorOptions;
      intermediary field_33161 Lnet/minecraft/class_6306;field_33161:Lnet/minecraft/class_5285;
      official u Ltc;u:Ldzw;
    • debugSampleLog

      private final MultiValueDebugSampleLogImpl debugSampleLog
      Mappings:
      Namespace Name Mixin selector
      named debugSampleLog Lnet/minecraft/test/TestServer;debugSampleLog:Lnet/minecraft/util/profiler/MultiValueDebugSampleLogImpl;
      intermediary field_48984 Lnet/minecraft/class_6306;field_48984:Lnet/minecraft/class_9191;
      official o Ltc;o:Lblr;
    • batches

      private List<GameTestBatch> batches
      Mappings:
      Namespace Name Mixin selector
      named batches Lnet/minecraft/test/TestServer;batches:Ljava/util/List;
      intermediary field_33158 Lnet/minecraft/class_6306;field_33158:Ljava/util/List;
      official p Ltc;p:Ljava/util/List;
    • testFunctions

      private final List<TestFunction> testFunctions
      Mappings:
      Namespace Name Mixin selector
      named testFunctions Lnet/minecraft/test/TestServer;testFunctions:Ljava/util/List;
      intermediary field_48493 Lnet/minecraft/class_6306;field_48493:Ljava/util/List;
      official q Ltc;q:Ljava/util/List;
    • pos

      private final BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      named pos Lnet/minecraft/test/TestServer;pos:Lnet/minecraft/util/math/BlockPos;
      intermediary field_33159 Lnet/minecraft/class_6306;field_33159:Lnet/minecraft/class_2338;
      official r Ltc;r:Ljd;
    • stopwatch

      private final Stopwatch stopwatch
      Mappings:
      Namespace Name Mixin selector
      named stopwatch Lnet/minecraft/test/TestServer;stopwatch:Lcom/google/common/base/Stopwatch;
      intermediary field_48494 Lnet/minecraft/class_6306;field_48494:Lcom/google/common/base/Stopwatch;
      official s Ltc;s:Lcom/google/common/base/Stopwatch;
    • testSet

      @Nullable private @Nullable TestSet testSet
      Mappings:
      Namespace Name Mixin selector
      named testSet Lnet/minecraft/test/TestServer;testSet:Lnet/minecraft/test/TestSet;
      intermediary field_33162 Lnet/minecraft/class_6306;field_33162:Lnet/minecraft/class_4524;
      official v Ltc;v:Lti;
  • Constructor Details

    • TestServer

      private TestServer(Thread serverThread, LevelStorage.Session session, ResourcePackManager dataPackManager, SaveLoader saveLoader, Collection<TestFunction> testFunctions, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      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
      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
      official <init> Ltc;<init>(Ljava/lang/Thread;Lerf$c;Latp;Lalp;Ljava/util/Collection;Ljd;)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
      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;
      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;
      official a Ltc;a(Ljava/lang/Thread;Lerf$c;Latp;Ljava/util/Collection;Ljd;)Ltc;
    • 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:
      setupServer in class MinecraftServer
      Returns:
      true if the Minecraft server was successfully setup, false if the server failed to be setup.
      Mappings:
      Namespace Name Mixin selector
      named setupServer Lnet/minecraft/server/MinecraftServer;setupServer()Z
      intermediary method_3823 Lnet/minecraft/server/MinecraftServer;method_3823()Z
      official e Lnet/minecraft/server/MinecraftServer;e()Z
    • tick

      public void tick(BooleanSupplier shouldKeepTicking)
      Overrides:
      tick in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/server/MinecraftServer;tick(Ljava/util/function/BooleanSupplier;)V
      intermediary method_3748 Lnet/minecraft/server/MinecraftServer;method_3748(Ljava/util/function/BooleanSupplier;)V
      official a Lnet/minecraft/server/MinecraftServer;a(Ljava/util/function/BooleanSupplier;)V
    • getDebugSampleLog

      public DebugSampleLog getDebugSampleLog()
      Specified by:
      getDebugSampleLog in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named getDebugSampleLog Lnet/minecraft/server/MinecraftServer;getDebugSampleLog()Lnet/minecraft/util/profiler/log/DebugSampleLog;
      intermediary method_56593 Lnet/minecraft/server/MinecraftServer;method_56593()Lnet/minecraft/class_8743;
      official f Lnet/minecraft/server/MinecraftServer;f()Lblu;
    • shouldPushTickTimeLog

      public boolean shouldPushTickTimeLog()
      Specified by:
      shouldPushTickTimeLog in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named shouldPushTickTimeLog Lnet/minecraft/server/MinecraftServer;shouldPushTickTimeLog()Z
      intermediary method_56626 Lnet/minecraft/server/MinecraftServer;method_56626()Z
      official g Lnet/minecraft/server/MinecraftServer;g()Z
    • runTasksTillTickEnd

      public void runTasksTillTickEnd()
      Overrides:
      runTasksTillTickEnd in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named runTasksTillTickEnd Lnet/minecraft/server/MinecraftServer;runTasksTillTickEnd()V
      intermediary method_16208 Lnet/minecraft/server/MinecraftServer;method_16208()V
      official v_ Lnet/minecraft/server/MinecraftServer;v_()V
    • addExtraSystemDetails

      public SystemDetails addExtraSystemDetails(SystemDetails details)
      Specified by:
      addExtraSystemDetails in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named addExtraSystemDetails Lnet/minecraft/server/MinecraftServer;addExtraSystemDetails(Lnet/minecraft/util/SystemDetails;)Lnet/minecraft/util/SystemDetails;
      intermediary method_3859 Lnet/minecraft/server/MinecraftServer;method_3859(Lnet/minecraft/class_6396;)Lnet/minecraft/class_6396;
      official a Lnet/minecraft/server/MinecraftServer;a(Lac;)Lac;
    • exit

      public void exit()
      Overrides:
      exit in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named exit Lnet/minecraft/server/MinecraftServer;exit()V
      intermediary method_3821 Lnet/minecraft/server/MinecraftServer;method_3821()V
      official i Lnet/minecraft/server/MinecraftServer;i()V
    • setCrashReport

      public void setCrashReport(CrashReport report)
      Overrides:
      setCrashReport in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named setCrashReport Lnet/minecraft/server/MinecraftServer;setCrashReport(Lnet/minecraft/util/crash/CrashReport;)V
      intermediary method_3744 Lnet/minecraft/server/MinecraftServer;method_3744(Lnet/minecraft/class_128;)V
      official a Lnet/minecraft/server/MinecraftServer;a(Lo;)V
    • runTestBatches

      private void runTestBatches(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named runTestBatches Lnet/minecraft/test/TestServer;runTestBatches(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_36096 Lnet/minecraft/class_6306;method_36096(Lnet/minecraft/class_3218;)V
      official b Ltc;b(Laqu;)V
    • isTesting

      private boolean isTesting()
      Mappings:
      Namespace Name Mixin selector
      named isTesting Lnet/minecraft/test/TestServer;isTesting()Z
      intermediary method_36098 Lnet/minecraft/class_6306;method_36098()Z
      official br Ltc;br()Z
    • isHardcore

      public boolean isHardcore()
      Overrides:
      isHardcore in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named isHardcore Lnet/minecraft/server/MinecraftServer;isHardcore()Z
      intermediary method_3754 Lnet/minecraft/server/MinecraftServer;method_3754()Z
      official j Lnet/minecraft/server/MinecraftServer;j()Z
    • getOpPermissionLevel

      public int getOpPermissionLevel()
      Specified by:
      getOpPermissionLevel in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named getOpPermissionLevel Lnet/minecraft/server/MinecraftServer;getOpPermissionLevel()I
      intermediary method_3798 Lnet/minecraft/server/MinecraftServer;method_3798()I
      official k Lnet/minecraft/server/MinecraftServer;k()I
    • getFunctionPermissionLevel

      public int getFunctionPermissionLevel()
      Specified by:
      getFunctionPermissionLevel in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named getFunctionPermissionLevel Lnet/minecraft/server/MinecraftServer;getFunctionPermissionLevel()I
      intermediary method_21714 Lnet/minecraft/server/MinecraftServer;method_21714()I
      official l Lnet/minecraft/server/MinecraftServer;l()I
    • shouldBroadcastRconToOps

      public boolean shouldBroadcastRconToOps()
      Specified by:
      shouldBroadcastRconToOps in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named shouldBroadcastRconToOps Lnet/minecraft/server/MinecraftServer;shouldBroadcastRconToOps()Z
      intermediary method_3732 Lnet/minecraft/server/MinecraftServer;method_3732()Z
      official m Lnet/minecraft/server/MinecraftServer;m()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:
      isDedicated in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named isDedicated Lnet/minecraft/server/MinecraftServer;isDedicated()Z
      intermediary method_3816 Lnet/minecraft/server/MinecraftServer;method_3816()Z
      official n Lnet/minecraft/server/MinecraftServer;n()Z
    • getRateLimit

      public int getRateLimit()
      Specified by:
      getRateLimit in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named getRateLimit Lnet/minecraft/server/MinecraftServer;getRateLimit()I
      intermediary method_30612 Lnet/minecraft/server/MinecraftServer;method_30612()I
      official o Lnet/minecraft/server/MinecraftServer;o()I
    • isUsingNativeTransport

      public boolean isUsingNativeTransport()
      Specified by:
      isUsingNativeTransport in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named isUsingNativeTransport Lnet/minecraft/server/MinecraftServer;isUsingNativeTransport()Z
      intermediary method_3759 Lnet/minecraft/server/MinecraftServer;method_3759()Z
      official p Lnet/minecraft/server/MinecraftServer;p()Z
    • areCommandBlocksEnabled

      public boolean areCommandBlocksEnabled()
      Specifies whether command blocks can execute commands on the server.
      Specified by:
      areCommandBlocksEnabled in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named areCommandBlocksEnabled Lnet/minecraft/server/MinecraftServer;areCommandBlocksEnabled()Z
      intermediary method_3812 Lnet/minecraft/server/MinecraftServer;method_3812()Z
      official q Lnet/minecraft/server/MinecraftServer;q()Z
    • isRemote

      public boolean isRemote()
      Specified by:
      isRemote in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named isRemote Lnet/minecraft/server/MinecraftServer;isRemote()Z
      intermediary method_3860 Lnet/minecraft/server/MinecraftServer;method_3860()Z
      official r Lnet/minecraft/server/MinecraftServer;r()Z
    • shouldBroadcastConsoleToOps

      public boolean shouldBroadcastConsoleToOps()
      Specified by:
      shouldBroadcastConsoleToOps in interface CommandOutput
      Specified by:
      shouldBroadcastConsoleToOps in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named shouldBroadcastConsoleToOps Lnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
      intermediary method_9201 Lnet/minecraft/class_2165;method_9201()Z
      official M_ Les;M_()Z
    • isHost

      public boolean isHost(com.mojang.authlib.GameProfile profile)
      Specified by:
      isHost in class MinecraftServer
      Mappings:
      Namespace Name Mixin selector
      named isHost Lnet/minecraft/server/MinecraftServer;isHost(Lcom/mojang/authlib/GameProfile;)Z
      intermediary method_19466 Lnet/minecraft/server/MinecraftServer;method_19466(Lcom/mojang/authlib/GameProfile;)Z
      official a Lnet/minecraft/server/MinecraftServer;a(Lcom/mojang/authlib/GameProfile;)Z