net.minecraft.server.command

public class 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
field_33180
field_33180
public static final int
TEST_FULL_SEARCH_RADIUS
field_33181
field_33181
public static final int
VERIFY_TEST_GRID_AXIS_SIZE
field_53735
field_53735
public static final int
VERIFY_TEST_BATCH_SIZE
field_53736
field_53736
private static final int
DEFAULT_CLEAR_RADIUS
field_33178
field_33178
private static final int
MAX_CLEAR_RADIUS
field_33179
field_33179
private static final int
TEST_POS_Z_OFFSET_FROM_PLAYER
field_33182
field_33182
private static final int
DEFAULT_X_SIZE
field_33184
field_33184
private static final int
DEFAULT_Y_SIZE
field_33185
field_33185
private static final int
DEFAULT_Z_SIZE
field_33186
field_33186
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
CLEAR_NO_TESTS
field_56194
NO_TESTS_TO_CLEAR_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
RESET_NO_TESTS
field_56408
NO_TESTS_TO_RESET_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
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
field_56196
EXPORT_STRUCTURES_NOT_FOUND_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
NO_TEST_INSTANCES
field_56197
NO_TEST_INSTANCES_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
NO_TEST_CONTAINING
field_56198
NO_TEST_CONTAINING_POS_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
TOO_LARGE
field_56409
TOO_LARGE_EXCEPTION

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
private static int
reset(TestFinder finder)
method_67009(class_9123 arg0)
reset(TestFinder finder)
private static int
clear(TestFinder finder)
method_67020(class_9123 arg0)
clear(TestFinder finder)
private static int
export(TestFinder finder)
method_67023(class_9123 arg0)
export(TestFinder finder)
private static int
verify(TestFinder finder)
method_67026(class_9123 arg0)
start(TestFinder finder)
private static int
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 int
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)
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)
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)
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)
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)
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 int
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)
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)
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(BlockPos testBlockPos, CommandSourceStack source, RetryOptions retryOptions)
method_56264(class_2338 arg0, class_2168 arg1, class_9118 arg2)
find(BlockPos pos, ServerCommandSource source, TestAttemptConfig config)
private static int
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)
method_22264(class_2168 arg0, String arg1)
executePos(ServerCommandSource source, String variableName)
private static int
stopTests()
method_56254()
stop()
public static int
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)
method_22282(class_2168 arg0, class_6880<class_10660> arg1)
executeExport(ServerCommandSource source, RegistryEntry<TestInstance> instance)
private static boolean
verifyStructureExists(CommandSourceStack source, Identifier structure)
method_54904(class_2168 arg0, class_2960 arg1)
checkStructure(ServerCommandSource source, Identifier templateId)
private static BlockPos
createTestPositionAround(CommandSourceStack source)
method_54850(class_2168 arg0)
getStructurePos(ServerCommandSource source)
private static void
lambda$trackAndStartRunner$0(GameTestInfo arg0)
method_56270(class_4517 arg0)
method_56270(GameTestState state)
private static Text
lambda$showPos$0(String arg0, Component arg1)
method_67006(String arg0, class_2561 arg1)
method_67006(String arg0, Text arg1)
private static Text
lambda$createNewStructure$1(TestInstanceBlockEntity arg0)
method_67306(class_10638 arg0)
method_67306(TestInstanceBlockEntity arg0)
private static void
lambda$createNewStructure$0(ServerLevel arg0, BlockPos arg1)
method_57105(class_3218 arg0, class_2338 arg1)
method_57105(ServerWorld arg0, BlockPos pos)
private static GameTestState
lambda$toGameTestInfo$1(int arg0, CommandSourceStack arg1, RetryOptions arg2, Holder$Reference arg3)
method_56255(int arg0, class_2168 arg1, class_9118 arg2, class_6880$class_6883 arg3)
method_56255(int arg0, ServerCommandSource arg1, TestAttemptConfig arg2, RegistryEntry$Reference instance)
private static boolean
lambda$toGameTestInfo$0(CommandSourceStack arg0, Holder$Reference arg1)
method_67003(class_2168 arg0, class_6880$class_6883 arg1)
method_67003(ServerCommandSource arg0, RegistryEntry$Reference instance)
private static Optional
lambda$toGameTestInfos$0(CommandSourceStack arg0, RetryOptions arg1, BlockPos arg2)
method_56260(class_2168 arg0, class_9118 arg1, class_2338 arg2)
method_56260(ServerCommandSource arg0, TestAttemptConfig arg1, BlockPos pos)
private static int
lambda$register$22(com.mojang.brigadier.context.CommandContext arg0)
method_67001(com.mojang.brigadier.context.CommandContext arg0)
method_67001(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$21(com.mojang.brigadier.context.CommandContext arg0)
method_67018(com.mojang.brigadier.context.CommandContext arg0)
method_67018(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$20(com.mojang.brigadier.context.CommandContext arg0)
method_67022(com.mojang.brigadier.context.CommandContext arg0)
method_67022(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$19(com.mojang.brigadier.context.CommandContext arg0)
method_67025(com.mojang.brigadier.context.CommandContext arg0)
method_67025(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$18(com.mojang.brigadier.context.CommandContext arg0)
method_67028(com.mojang.brigadier.context.CommandContext arg0)
method_67028(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$17(com.mojang.brigadier.context.CommandContext arg0)
method_67030(com.mojang.brigadier.context.CommandContext arg0)
method_67030(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$16(com.mojang.brigadier.context.CommandContext arg0)
method_67031(com.mojang.brigadier.context.CommandContext arg0)
method_67031(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$15(com.mojang.brigadier.context.CommandContext arg0)
method_23648(com.mojang.brigadier.context.CommandContext arg0)
method_23648(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$14(com.mojang.brigadier.context.CommandContext arg0)
method_22288(com.mojang.brigadier.context.CommandContext arg0)
method_22288(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$13(com.mojang.brigadier.context.CommandContext arg0)
method_56274(com.mojang.brigadier.context.CommandContext arg0)
method_56274(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$12(com.mojang.brigadier.context.CommandContext arg0)
method_67032(com.mojang.brigadier.context.CommandContext arg0)
method_67032(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$11(com.mojang.brigadier.context.CommandContext arg0)
method_67033(com.mojang.brigadier.context.CommandContext arg0)
method_67033(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$10(com.mojang.brigadier.context.CommandContext arg0)
method_67034(com.mojang.brigadier.context.CommandContext arg0)
method_67034(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$9(com.mojang.brigadier.context.CommandContext arg0)
method_67035(com.mojang.brigadier.context.CommandContext arg0)
method_67035(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$8(com.mojang.brigadier.context.CommandContext arg0)
method_67036(com.mojang.brigadier.context.CommandContext arg0)
method_67036(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$7(com.mojang.brigadier.context.CommandContext arg0)
method_67037(com.mojang.brigadier.context.CommandContext arg0)
method_67037(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$6(com.mojang.brigadier.context.CommandContext arg0)
method_67038(com.mojang.brigadier.context.CommandContext arg0)
method_67038(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$5(com.mojang.brigadier.context.CommandContext arg0)
method_71944(com.mojang.brigadier.context.CommandContext arg0)
method_71944(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$4(com.mojang.brigadier.context.CommandContext arg0)
method_71945(com.mojang.brigadier.context.CommandContext arg0)
method_71945(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$3(com.mojang.brigadier.context.CommandContext arg0)
method_71946(com.mojang.brigadier.context.CommandContext arg0)
method_71946(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$2(com.mojang.brigadier.context.CommandContext arg0)
method_71947(com.mojang.brigadier.context.CommandContext arg0)
method_71947(com.mojang.brigadier.context.CommandContext context)
private static TestFinder
lambda$register$1(com.mojang.brigadier.context.CommandContext arg0)
method_71948(com.mojang.brigadier.context.CommandContext arg0)
method_71948(com.mojang.brigadier.context.CommandContext context)
private static TestFinder
lambda$register$0(com.mojang.brigadier.context.CommandContext arg0)
method_67044(com.mojang.brigadier.context.CommandContext arg0)
method_67044(com.mojang.brigadier.context.CommandContext context)
private static com.mojang.brigadier.builder.ArgumentBuilder
lambda$runWithRetryOptionsAndBuildInfo$0(InCommandFunction arg0, com.mojang.brigadier.builder.ArgumentBuilder arg1)
method_66999(class_10618 arg0, com.mojang.brigadier.builder.ArgumentBuilder arg1)
method_66999(ArgumentGetter arg0, com.mojang.brigadier.builder.ArgumentBuilder builder2)
private static int
lambda$runWithRetryOptionsAndBuildInfo$2(InCommandFunction arg0, com.mojang.brigadier.context.CommandContext arg1)
method_67000(class_10618 arg0, com.mojang.brigadier.context.CommandContext arg1)
method_67000(ArgumentGetter arg0, com.mojang.brigadier.context.CommandContext context)
private static int
lambda$runWithRetryOptionsAndBuildInfo$1(InCommandFunction arg0, com.mojang.brigadier.context.CommandContext arg1)
method_67016(class_10618 arg0, com.mojang.brigadier.context.CommandContext arg1)
method_67016(ArgumentGetter arg0, com.mojang.brigadier.context.CommandContext context)
private static com.mojang.brigadier.builder.ArgumentBuilder
lambda$runWithRetryOptions$3(com.mojang.brigadier.builder.ArgumentBuilder arg0)
method_56256(com.mojang.brigadier.builder.ArgumentBuilder arg0)
method_56256(com.mojang.brigadier.builder.ArgumentBuilder extraConfigAdder)
private static int
lambda$runWithRetryOptions$2(InCommandFunction arg0, com.mojang.brigadier.context.CommandContext arg1)
method_67021(class_10618 arg0, com.mojang.brigadier.context.CommandContext arg1)
method_67021(ArgumentGetter arg0, com.mojang.brigadier.context.CommandContext context)
private static int
lambda$runWithRetryOptions$1(InCommandFunction arg0, com.mojang.brigadier.context.CommandContext arg1)
method_67024(class_10618 arg0, com.mojang.brigadier.context.CommandContext arg1)
method_67024(ArgumentGetter arg0, com.mojang.brigadier.context.CommandContext context)
private static int
lambda$runWithRetryOptions$0(InCommandFunction arg0, com.mojang.brigadier.context.CommandContext arg1)
method_67027(class_10618 arg0, com.mojang.brigadier.context.CommandContext arg1)
method_67027(ArgumentGetter arg0, com.mojang.brigadier.context.CommandContext context)
private static Text
lambda$locate$3(int arg0)
method_66998(int arg0)
method_66998(int arg0)
private static void
lambda$locate$0(TestFinder arg0, BlockPos arg1, org.apache.commons.lang3.mutable.MutableInt arg2, BlockPos arg3)
method_67010(class_9123 arg0, class_2338 arg1, org.apache.commons.lang3.mutable.MutableInt arg2, class_2338 arg3)
method_67010(TestFinder arg0, BlockPos arg1, org.apache.commons.lang3.mutable.MutableInt arg2, BlockPos pos)
private static Text
lambda$locate$2(Component arg0, int arg1)
method_67013(class_2561 arg0, int arg1)
method_67013(Text arg0, int arg1)
private static Style
lambda$locate$1(String arg0, Style arg1)
method_67007(String arg0, class_2583 arg1)
method_67007(String arg0, Style style)
private static Text
lambda$run$1(Collection arg0)
method_67008(Collection arg0)
method_67008(Collection arg0)
private static Text
lambda$run$0()
method_67014()
method_67014()
private static Text
lambda$export$0(String arg0)
method_67005(String arg0)
method_67005(String arg0)
private static Text
lambda$clear$1(List arg0)
method_67015(List arg0)
method_67015(List arg0)
private static Stream
lambda$clear$0(ServerLevel arg0, BlockPos arg1)
method_67017(class_3218 arg0, class_2338 arg1)
method_67017(ServerWorld arg0, BlockPos pos)
private static Text
lambda$reset$1(int arg0)
method_67308(int arg0)
method_67308(int arg0)
private static Integer
lambda$reset$0(TestFinder arg0, GameTestInfo arg1)
method_67011(class_9123 arg0, class_4517 arg1)
method_67011(TestFinder arg0, GameTestState state)
private static com.mojang.brigadier.Message
lambda$static$1(Object arg0)
method_67307(Object arg0)
method_67307(Object maxSize)
private static com.mojang.brigadier.Message
lambda$static$0(Object arg0, Object arg1, Object arg2)
method_67004(Object arg0, Object arg1, Object arg2)
method_67004(Object x, Object y, Object z)