net.minecraft.server.command

public class TestCommand

net.minecraft.gametest.framework.TestCommand
net.minecraft.gametest.framework.TestCommand
net.minecraft.class_4527
net.minecraft.server.command.TestCommand

Field summary

Modifier and TypeField
public static final int
TEST_NEARBY_SEARCH_RADIUS
TEST_NEARBY_SEARCH_RADIUS
field_33180
field_33180
public static final int
TEST_FULL_SEARCH_RADIUS
TEST_FULL_SEARCH_RADIUS
field_33181
field_33181
public static final int
VERIFY_TEST_GRID_AXIS_SIZE
VERIFY_TEST_GRID_AXIS_SIZE
field_53735
field_53735
public static final int
VERIFY_TEST_BATCH_SIZE
VERIFY_TEST_BATCH_SIZE
field_53736
field_53736
private static final int
DEFAULT_CLEAR_RADIUS
DEFAULT_CLEAR_RADIUS
field_33178
field_33178
private static final int
MAX_CLEAR_RADIUS
MAX_CLEAR_RADIUS
field_33179
field_33179
private static final int
TEST_POS_Z_OFFSET_FROM_PLAYER
TEST_POS_Z_OFFSET_FROM_PLAYER
field_33182
field_33182
private static final int
DEFAULT_X_SIZE
DEFAULT_X_SIZE
field_33184
field_33184
private static final int
DEFAULT_Y_SIZE
DEFAULT_Y_SIZE
field_33185
field_33185
private static final int
DEFAULT_Z_SIZE
DEFAULT_Z_SIZE
field_33186
field_33186
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
CLEAR_NO_TESTS
CLEAR_NO_TESTS
field_56194
NO_TESTS_TO_CLEAR_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
RESET_NO_TESTS
RESET_NO_TESTS
field_56408
NO_TESTS_TO_RESET_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
TEST_INSTANCE_COULD_NOT_BE_FOUND
TEST_INSTANCE_COULD_NOT_BE_FOUND
field_56195
TEST_INSTANCE_NOT_FOUND_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
NO_STRUCTURES_TO_EXPORT
NO_STRUCTURES_TO_EXPORT
field_56196
EXPORT_STRUCTURES_NOT_FOUND_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
NO_TEST_INSTANCES
NO_TEST_INSTANCES
field_56197
NO_TEST_INSTANCES_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
NO_TEST_CONTAINING
NO_TEST_CONTAINING
field_56198
NO_TEST_CONTAINING_POS_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
TOO_LARGE
TOO_LARGE
field_56409
TOO_LARGE_EXCEPTION

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
private static int
reset(TestFinder finder)
reset(TestFinder finder)
method_67009(class_9123 arg0)
reset(TestFinder finder)
private static int
clear(TestFinder finder)
clear(TestFinder finder)
method_67020(class_9123 arg0)
clear(TestFinder finder)
private static int
export(TestFinder finder)
export(TestFinder finder)
method_67023(class_9123 arg0)
export(TestFinder finder)
private static int
verify(TestFinder finder)
verify(TestFinder finder)
method_67026(class_9123 arg0)
start(TestFinder finder)
private static int
run(TestFinder finder, RetryOptions retryOptions, int extraRotationSteps, int testsPerRow)
run(TestFinder finder, RetryOptions retryOptions, int extraRotationSteps, int testsPerRow)
method_67012(class_9123 arg0, class_9118 arg1, int arg2, int arg3)
start(TestFinder finder, TestAttemptConfig config, int rotationSteps, int testsPerRow)
private static Stream<GlobalPos>
findSelectedTestPositionsAcrossDimensions(TestFinder finder)
findSelectedTestPositionsAcrossDimensions(TestFinder finder)
method_1_9914(class_9123 arg0)
findTestInstanceBlockPositions(TestFinder finder)
private static int
locate(TestFinder finder)
locate(TestFinder finder)
method_67029(class_9123 arg0)
locate(TestFinder finder)
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>
runWithRetryOptions(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> runArgument, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestFinder> finder, Function<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>> then)
runWithRetryOptions(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> runArgument, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestFinder> finder, Function<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>> then)
method_56258(com.mojang.brigadier.builder.ArgumentBuilder<class_2168, ?> arg0, class_10618<com.mojang.brigadier.context.CommandContext<class_2168>, class_9123> arg1, Function<com.mojang.brigadier.builder.ArgumentBuilder<class_2168, ?>, com.mojang.brigadier.builder.ArgumentBuilder<class_2168, ?>> arg2)
testAttemptConfig(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, ArgumentGetter<com.mojang.brigadier.context.CommandContext<ServerCommandSource>, TestFinder> finderGetter, Function<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>> extraConfigAdder)
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>
runWithRetryOptions(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> runArgument, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestFinder> finder)
runWithRetryOptions(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> runArgument, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestFinder> finder)
method_56257(com.mojang.brigadier.builder.ArgumentBuilder<class_2168, ?> arg0, class_10618<com.mojang.brigadier.context.CommandContext<class_2168>, class_9123> arg1)
testAttemptConfig(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, ArgumentGetter<com.mojang.brigadier.context.CommandContext<ServerCommandSource>, TestFinder> finderGetter)
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>
runWithRetryOptionsAndBuildInfo(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> runArgument, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestFinder> finder)
runWithRetryOptionsAndBuildInfo(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> runArgument, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestFinder> finder)
method_56268(com.mojang.brigadier.builder.ArgumentBuilder<class_2168, ?> arg0, class_10618<com.mojang.brigadier.context.CommandContext<class_2168>, class_9123> arg1)
testAttemptAndPlacementConfig(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, ArgumentGetter<com.mojang.brigadier.context.CommandContext<ServerCommandSource>, TestFinder> finderGetter)
public static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
method_22270(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess)
public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestTestFunction(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestTestFunction(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
method_67002(com.mojang.brigadier.context.CommandContext<class_2168> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
suggestTestFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
private static String
displayTestId(Identifier id)
displayTestId(Identifier id)
method_1_9913(class_2960 arg0)
idToString(Identifier id)
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestTestInstanceIds(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
suggestTestInstanceIds(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
method_1_9926(com.mojang.brigadier.context.CommandContext<class_2168> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
suggestTestInstances(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
private static int
resetGameTestInfo(CommandSourceStack source, GameTestInfo testInfo)
resetGameTestInfo(CommandSourceStack source, GameTestInfo testInfo)
method_56267(class_2168 arg0, class_4517 arg1)
reset(ServerCommandSource source, GameTestState state)
private static Stream<GameTestState>
toGameTestInfos(CommandSourceStack source, RetryOptions retryOptions, TestPosFinder finder)
toGameTestInfos(CommandSourceStack source, RetryOptions retryOptions, TestPosFinder finder)
method_56261(class_2168 arg0, class_9118 arg1, class_10675 arg2)
stream(ServerCommandSource source, TestAttemptConfig config, TestInstanceBlockFinder finder)
private static Stream<GameTestState>
toGameTestInfo(CommandSourceStack source, RetryOptions retryOptions, TestInstanceFinder finder, int rotationSteps)
toGameTestInfo(CommandSourceStack source, RetryOptions retryOptions, TestInstanceFinder finder, int rotationSteps)
method_56262(class_2168 arg0, class_9118 arg1, class_10674 arg2, int arg3)
stream(ServerCommandSource source, TestAttemptConfig config, TestInstanceFinder finder, int rotationSteps)
private static Optional<GameTestState>
createGameTestInfo(GlobalPos testBlockPos, CommandSourceStack source, RetryOptions retryOptions)
createGameTestInfo(GlobalPos testBlockPos, CommandSourceStack source, RetryOptions retryOptions)
method_56264(class_4208 arg0, class_2168 arg1, class_9118 arg2)
find(GlobalPos pos, ServerCommandSource source, TestAttemptConfig config)
private static int
createNewStructure(CommandSourceStack source, Identifier id, int xSize, int ySize, int zSize)
createNewStructure(CommandSourceStack source, Identifier id, int xSize, int ySize, int zSize)
method_22268(class_2168 arg0, class_2960 arg1, int arg2, int arg3, int arg4)
executeCreate(ServerCommandSource source, Identifier id, int x, int y, int z)
private static int
showPos(CommandSourceStack source, String varName)
showPos(CommandSourceStack source, String varName)
method_22264(class_2168 arg0, String arg1)
executePos(ServerCommandSource source, String variableName)
private static int
stopTests()
stopTests()
method_56254()
stop()
public static int
trackAndStartRunner(CommandSourceStack source, GameTestRunner runner)
trackAndStartRunner(CommandSourceStack source, GameTestRunner runner)
method_56259(class_2168 arg0, class_4520 arg1)
start(ServerCommandSource source, TestRunContext context)
private static int
exportTestStructure(CommandSourceStack source, Holder<GameTestInstance> test)
exportTestStructure(CommandSourceStack source, Holder<GameTestInstance> test)
method_22282(class_2168 arg0, class_6880<class_10660> arg1)
executeExport(ServerCommandSource source, RegistryEntry<TestInstance> instance)
private static boolean
verifyStructureExists(CommandSourceStack source, Identifier structure)
verifyStructureExists(CommandSourceStack source, Identifier structure)
method_54904(class_2168 arg0, class_2960 arg1)
checkStructure(ServerCommandSource source, Identifier templateId)
private static BlockPos
createTestPositionAround(CommandSourceStack source, ResourceKey<Level> dimension)
createTestPositionAround(CommandSourceStack source, ResourceKey<Level> dimension)
method_54850(class_2168 arg0, class_5321<class_1937> arg1)
getStructurePos(ServerCommandSource source, RegistryKey<World> dimension)
private static TestCommand$Info
playerAndTestInfo(CommandSourceStack source, ResourceKey<Level> dimension)
playerAndTestInfo(CommandSourceStack source, ResourceKey<Level> dimension)
method_1_6645(class_2168 arg0, class_5321<class_1937> arg1)
getTestInfo(ServerCommandSource source, RegistryKey<World> dimension)
private static void
outputTestCoordinates(CommandSourceStack source, Set<ResourceKey<Level>> testDimensions)
outputTestCoordinates(CommandSourceStack source, Set<ResourceKey<Level>> testDimensions)
method_1_9925(class_2168 arg0, Set<class_5321<class_1937>> arg1)
sendTestRunCoordinates(ServerCommandSource source, Set<RegistryKey<World>> dimensions)
private static void
outputPlayerCoordinates(CommandSourceStack source, Set<ResourceKey<Level>> testDimensions)
outputPlayerCoordinates(CommandSourceStack source, Set<ResourceKey<Level>> testDimensions)
method_1_9924(class_2168 arg0, Set<class_5321<class_1937>> arg1)
sendTestPlayerCoordinates(ServerCommandSource source, Set<RegistryKey<World>> dimensions)
private static boolean
isPlayerInCurrentTestDimension(TestCommand$Info playerInfo, Set<ResourceKey<Level>> testDimensions)
isPlayerInCurrentTestDimension(TestCommand$Info playerInfo, Set<ResourceKey<Level>> testDimensions)
method_1_9915(class_4527$class_1_1056 arg0, Set<class_5321<class_1937>> arg1)
shouldSkipLocationFeedback(TestCommand$Info testInfo, Set<RegistryKey<World>> dimensions)