Package net.minecraft.gametest.framework
Class TestCommand
java.lang.Object
net.minecraft.gametest.framework.TestCommand
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final int
private static final int
private static final int
private static final int
private static final int
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final int
static final int
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final int
private static final int
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
clear
(TestFinder p_397313_) private static Optional
<GameTestInfo> createGameTestInfo
(BlockPos p_320172_, CommandSourceStack p_397178_, RetryOptions p_320822_) private static int
createNewStructure
(CommandSourceStack p_127968_, ResourceLocation p_397523_, int p_127970_, int p_127971_, int p_127972_) private static BlockPos
createTestPositionAround
(CommandSourceStack p_308921_) private static int
export
(TestFinder p_397687_) private static int
exportTestStructure
(CommandSourceStack p_128011_, Holder<GameTestInstance> p_397788_) private static int
locate
(TestFinder p_398025_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_397608_, CommandBuildContext p_397506_) private static int
reset
(TestFinder p_397649_) private static int
resetGameTestInfo
(CommandSourceStack p_398051_, GameTestInfo p_320507_) private static int
run
(TestFinder p_397551_, RetryOptions p_397983_, int p_397852_, int p_397200_) private static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> runWithRetryOptions
(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_320397_, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestFinder> p_397514_) private static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> runWithRetryOptions
(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_320965_, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestFinder> p_397601_, Function<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>> p_320702_) private static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> runWithRetryOptionsAndBuildInfo
(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_320872_, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestFinder> p_397644_) private static int
showPos
(CommandSourceStack p_127960_, String p_127961_) private static int
static CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestTestFunction
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_397651_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_397175_) private static Stream
<GameTestInfo> toGameTestInfo
(CommandSourceStack p_320465_, RetryOptions p_320183_, TestInstanceFinder p_398020_, int p_320854_) private static Stream
<GameTestInfo> toGameTestInfos
(CommandSourceStack p_320827_, RetryOptions p_320932_, TestPosFinder p_397800_) static int
trackAndStartRunner
(CommandSourceStack p_320627_, GameTestRunner p_320295_) private static int
verify
(TestFinder p_397193_) private static boolean
verifyStructureExists
(CommandSourceStack p_397899_, ResourceLocation p_397562_)
-
Field Details
-
TEST_NEARBY_SEARCH_RADIUS
public static final int TEST_NEARBY_SEARCH_RADIUS- See Also:
-
TEST_FULL_SEARCH_RADIUS
public static final int TEST_FULL_SEARCH_RADIUS- See Also:
-
VERIFY_TEST_GRID_AXIS_SIZE
public static final int VERIFY_TEST_GRID_AXIS_SIZE- See Also:
-
VERIFY_TEST_BATCH_SIZE
public static final int VERIFY_TEST_BATCH_SIZE- See Also:
-
DEFAULT_CLEAR_RADIUS
private static final int DEFAULT_CLEAR_RADIUS- See Also:
-
MAX_CLEAR_RADIUS
private static final int MAX_CLEAR_RADIUS- See Also:
-
TEST_POS_Z_OFFSET_FROM_PLAYER
private static final int TEST_POS_Z_OFFSET_FROM_PLAYER- See Also:
-
SHOW_POS_DURATION_MS
private static final int SHOW_POS_DURATION_MS- See Also:
-
DEFAULT_X_SIZE
private static final int DEFAULT_X_SIZE- See Also:
-
DEFAULT_Y_SIZE
private static final int DEFAULT_Y_SIZE- See Also:
-
DEFAULT_Z_SIZE
private static final int DEFAULT_Z_SIZE- See Also:
-
CLEAR_NO_TESTS
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType CLEAR_NO_TESTS -
RESET_NO_TESTS
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType RESET_NO_TESTS -
TEST_INSTANCE_COULD_NOT_BE_FOUND
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TEST_INSTANCE_COULD_NOT_BE_FOUND -
NO_STRUCTURES_TO_EXPORT
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NO_STRUCTURES_TO_EXPORT -
NO_TEST_INSTANCES
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NO_TEST_INSTANCES -
NO_TEST_CONTAINING
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType NO_TEST_CONTAINING -
TOO_LARGE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType TOO_LARGE
-
-
Constructor Details
-
TestCommand
public TestCommand()
-
-
Method Details
-
reset
private static int reset(TestFinder p_397649_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
clear
private static int clear(TestFinder p_397313_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
export
private static int export(TestFinder p_397687_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
verify
-
run
-
locate
private static int locate(TestFinder p_398025_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
runWithRetryOptions
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> runWithRetryOptions(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_320965_, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestFinder> p_397601_, Function<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>> p_320702_) -
runWithRetryOptions
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> runWithRetryOptions(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_320397_, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestFinder> p_397514_) -
runWithRetryOptionsAndBuildInfo
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> runWithRetryOptionsAndBuildInfo(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_320872_, InCommandFunction<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestFinder> p_397644_) -
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_397608_, CommandBuildContext p_397506_) -
suggestTestFunction
public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTestFunction(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_397651_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_397175_) -
resetGameTestInfo
-
toGameTestInfos
private static Stream<GameTestInfo> toGameTestInfos(CommandSourceStack p_320827_, RetryOptions p_320932_, TestPosFinder p_397800_) -
toGameTestInfo
private static Stream<GameTestInfo> toGameTestInfo(CommandSourceStack p_320465_, RetryOptions p_320183_, TestInstanceFinder p_398020_, int p_320854_) -
createGameTestInfo
private static Optional<GameTestInfo> createGameTestInfo(BlockPos p_320172_, CommandSourceStack p_397178_, RetryOptions p_320822_) -
createNewStructure
private static int createNewStructure(CommandSourceStack p_127968_, ResourceLocation p_397523_, int p_127970_, int p_127971_, int p_127972_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
showPos
private static int showPos(CommandSourceStack p_127960_, String p_127961_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
stopTests
private static int stopTests() -
trackAndStartRunner
-
exportTestStructure
private static int exportTestStructure(CommandSourceStack p_128011_, Holder<GameTestInstance> p_397788_) -
verifyStructureExists
private static boolean verifyStructureExists(CommandSourceStack p_397899_, ResourceLocation p_397562_) -
createTestPositionAround
-