Package net.minecraft.gametest.framework
Class TestCommand
java.lang.Object
net.minecraft.gametest.framework.TestCommand
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
(package private) static final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
private static final org.slf4j.Logger
private static final int
private static final int
private static final String
static final int
static final int
private static final int
private static final TestFinder.Builder
<TestCommand.Runner> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static Optional
<GameTestInfo> createGameTestInfo
(BlockPos p_320172_, ServerLevel p_320346_, RetryOptions p_320822_) private static int
createNewStructure
(CommandSourceStack p_127968_, String p_127969_, int p_127970_, int p_127971_, int p_127972_) (package private) static BlockPos
createTestPositionAround
(CommandSourceStack p_308921_) private static int
exportTestStructure
(CommandSourceStack p_128011_, String p_128012_) private static int
importTestStructure
(CommandSourceStack p_128016_, String p_128017_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_127947_) private static int
resetGameTestInfo
(GameTestInfo p_320507_) private static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> runWithRetryOptions
(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_320397_, Function<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestCommand.Runner> p_320472_) private static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> runWithRetryOptions
(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_320965_, Function<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestCommand.Runner> p_320702_, Function<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>> p_320600_) private static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> runWithRetryOptionsAndBuildInfo
(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_320872_, Function<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestCommand.Runner> p_320896_) (package private) static int
saveAndExportTestStructure
(CommandSourceStack p_309558_, StructureBlockEntity p_309587_) (package private) static void
say
(CommandSourceStack p_128004_, String p_128005_) (package private) static void
say
(ServerLevel p_127934_, String p_127935_, ChatFormatting p_127936_) private static int
showPos
(CommandSourceStack p_127960_, String p_127961_) (package private) static int
(package private) static Stream
<GameTestInfo> toGameTestInfo
(CommandSourceStack p_320465_, RetryOptions p_320183_, TestFunctionFinder p_320598_, int p_320854_) (package private) static Stream
<GameTestInfo> toGameTestInfos
(CommandSourceStack p_320827_, RetryOptions p_320932_, StructureBlockPosFinder p_320543_) (package private) static int
trackAndStartRunner
(CommandSourceStack p_320627_, ServerLevel p_320564_, GameTestRunner p_320295_) private static boolean
verifyStructureExists
(ServerLevel p_309700_, String p_320698_)
-
Field Details
-
STRUCTURE_BLOCK_NEARBY_SEARCH_RADIUS
public static final int STRUCTURE_BLOCK_NEARBY_SEARCH_RADIUS- See Also:
-
STRUCTURE_BLOCK_FULL_SEARCH_RADIUS
public static final int STRUCTURE_BLOCK_FULL_SEARCH_RADIUS- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
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:
-
STRUCTURE_BLOCK_ENTITY_COULD_NOT_BE_FOUND
- See Also:
-
testFinder
-
-
Constructor Details
-
TestCommand
public TestCommand()
-
-
Method Details
-
runWithRetryOptions
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> runWithRetryOptions(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_320965_, Function<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestCommand.Runner> p_320702_, Function<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>> p_320600_) -
runWithRetryOptions
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> runWithRetryOptions(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_320397_, Function<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestCommand.Runner> p_320472_) -
runWithRetryOptionsAndBuildInfo
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> runWithRetryOptionsAndBuildInfo(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_320872_, Function<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestCommand.Runner> p_320896_) -
register
-
resetGameTestInfo
-
toGameTestInfos
static Stream<GameTestInfo> toGameTestInfos(CommandSourceStack p_320827_, RetryOptions p_320932_, StructureBlockPosFinder p_320543_) -
toGameTestInfo
static Stream<GameTestInfo> toGameTestInfo(CommandSourceStack p_320465_, RetryOptions p_320183_, TestFunctionFinder p_320598_, int p_320854_) -
createGameTestInfo
private static Optional<GameTestInfo> createGameTestInfo(BlockPos p_320172_, ServerLevel p_320346_, RetryOptions p_320822_) -
createNewStructure
private static int createNewStructure(CommandSourceStack p_127968_, String p_127969_, int p_127970_, int p_127971_, int p_127972_) -
showPos
private static int showPos(CommandSourceStack p_127960_, String p_127961_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
stopTests
static int stopTests() -
trackAndStartRunner
static int trackAndStartRunner(CommandSourceStack p_320627_, ServerLevel p_320564_, GameTestRunner p_320295_) -
saveAndExportTestStructure
-
exportTestStructure
-
verifyStructureExists
-
createTestPositionAround
-
say
-
importTestStructure
-
say
-