net.minecraft.test

public class TestServer

extends MinecraftServer

All mapped superinterfaces:

TaskExecutor, SampleableExecutor, CommandOutput, QueryableServer, ChunkErrorHandler

net.minecraft.gametest.framework.GameTestServer
net.minecraft.class_6306
net.minecraft.test.TestServer

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_33156
LOGGER
private static final int
PROGRESS_REPORT_INTERVAL
field_33157
RESULT_STRING_LOG_INTERVAL
private static final int
TEST_POSITION_RANGE
field_47175
TEST_POS_XZ_RANGE
private static final ApiServices
NO_SERVICES
field_39441
NONE_API_SERVICES
private static final FeatureSet
ENABLED_FEATURES
field_53734
ENABLED_FEATURES
private final MultiValueDebugSampleLogImpl
sampleLogger
field_48984
debugSampleLog
private final Optional<String>
testSelection
field_56192
tests
private final boolean
verify
field_56193
verify
private List<GameTestBatch>
testBatches
field_33158
batches
private final com.google.common.base.Stopwatch
stopwatch
field_48494
stopwatch
private static final GeneratorOptions
WORLD_OPTIONS
field_33161
TEST_LEVEL
private TestSet
testTracker
field_33162
testSet

Constructor summary

ModifierConstructor
private (Thread serverThread, LevelStorage$Session session, ResourcePackManager dataPackManager, SaveLoader saveLoader, Optional<String> tests, boolean verify)

Method summary

Modifier and TypeMethod
public static TestServer
create(Thread serverThread, LevelStorageSource$LevelStorageAccess levelStorageSource, PackRepository packRepository, Optional<String> testSelection, boolean verify)
method_40378(Thread arg0, class_32$class_5143 arg1, class_3283 arg2, Optional<String> arg3, boolean arg4)
create(Thread thread, LevelStorage$Session session, ResourcePackManager resourcePackManager, Optional<String> tests, boolean verify)
protected boolean
initServer()
method_3823()
setupServer()
private List<GameTestBatch>
evaluateTestsToRun(ServerLevel level)
method_66986(class_3218 arg0)
batch(ServerWorld world)
private static Stream<GameTestState>
rotateAndMultiply(Holder$Reference<GameTestInstance> test, ServerLevel level)
method_66984(class_6880$class_6883<class_10660> arg0, class_3218 arg1)
makeVerificationBatches(RegistryEntry$Reference<TestInstance> instance, ServerWorld world)
public static Stream<RegistryEntry$Reference<TestInstance>>
getTestsForSelection(RegistryAccess registries, String selection)
method_66985(class_5455 arg0, String arg1)
selectInstances(DynamicRegistryManager registryManager, String selector)
protected void
tickServer(BooleanSupplier haveTime)
method_3748(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
private static void
logFailedTest(GameTestInfo testInfo)
method_67486(class_4517 arg0)
logFailure(GameTestState state)
protected DebugSampleLog
getTickTimeLogger()
method_56593()
getDebugSampleLog()
public boolean
isTickTimeLoggingEnabled()
method_56626()
shouldPushTickTimeLog()
protected void
waitUntilNextTick()
method_16208()
runTasksTillTickEnd()
public SystemDetails
fillServerSystemReport(SystemReport systemReport)
method_3859(class_6396 arg0)
addExtraSystemDetails(SystemDetails arg0)
protected void
onServerExit()
method_3821()
exit()
protected void
onServerCrash(CrashReport report)
method_3744(class_128 arg0)
setCrashReport(CrashReport arg0)
private void
startTests(ServerLevel level)
method_36096(class_3218 arg0)
runTestBatches(ServerWorld world)
private boolean
haveTestsStarted()
method_36098()
isTesting()
public boolean
isHardcore()
method_3754()
isHardcore()
public LeveledPermissionPredicate
operatorUserPermissions()
method_74994()
getOpPermissionLevel()
public PermissionPredicate
getFunctionCompilationPermissions()
method_74995()
getFunctionPermissions()
public boolean
shouldRconBroadcast()
method_3732()
shouldBroadcastRconToOps()
public boolean
isDedicatedServer()
method_3816()
isDedicated()
public int
getRateLimitPacketsPerSecond()
method_30612()
getRateLimit()
public boolean
useNativeTransport()
method_3759()
isUsingNativeTransport()
public boolean
isPublished()
method_3860()
isRemote()
public boolean
shouldInformAdmins()
method_9201()
shouldBroadcastConsoleToOps()
public boolean
isSingleplayerOwner(NameAndId nameAndId)
method_19466(class_11560 arg0)
isHost(PlayerConfigEntry arg0)
public int
getMaxPlayers()
method_3802()
getMaxPlayerCount()
private static boolean
lambda$evaluateTestsToRun$3(Holder$Reference arg0)
method_66983(class_6880$class_6883 arg0)
method_66983(RegistryEntry$Reference instance)
private static boolean
lambda$evaluateTestsToRun$2(Holder$Reference arg0)
method_66987(class_6880$class_6883 arg0)
method_66987(RegistryEntry$Reference instance)
private static CompletableFuture
lambda$create$1(WorldLoader$InitConfig arg0, LevelSettings arg1, Executor arg2)
method_43615(class_7237$class_6906 arg0, class_1940 arg1, Executor arg2)
method_43615(SaveLoading$ServerConfig arg0, LevelInfo arg1, Executor executor)
private static SaveLoading$LoadContext
lambda$create$0(LevelSettings arg0, WorldLoader$DataLoadContext arg1)
method_40377(class_1940 arg0, class_7237$class_7660 arg1)
method_40377(LevelInfo arg0, SaveLoading$LoadContextSupplierContext context)