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_332856_, ServerLevel p_328153_, RetryOptions p_330368_) 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_313084_) 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_331593_) private static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> runWithRetryOptions
(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_335642_, Function<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestCommand.Runner> p_330546_) private static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> runWithRetryOptions
(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_331571_, Function<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestCommand.Runner> p_335923_, Function<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>> p_333739_) private static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> runWithRetryOptionsAndBuildInfo
(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_328748_, Function<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestCommand.Runner> p_328595_) (package private) static int
saveAndExportTestStructure
(CommandSourceStack p_309467_, StructureBlockEntity p_310131_) (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_330917_, RetryOptions p_332428_, TestFunctionFinder p_328880_, int p_327985_) (package private) static Stream
<GameTestInfo> toGameTestInfos
(CommandSourceStack p_329247_, RetryOptions p_336246_, StructureBlockPosFinder p_334897_) (package private) static int
trackAndStartRunner
(CommandSourceStack p_333535_, ServerLevel p_333108_, GameTestRunner p_333430_) private static boolean
verifyStructureExists
(ServerLevel p_310841_, String p_330426_)
-
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_331571_, Function<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestCommand.Runner> p_335923_, Function<com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?>> p_333739_) -
runWithRetryOptions
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> runWithRetryOptions(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_335642_, Function<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestCommand.Runner> p_330546_) -
runWithRetryOptionsAndBuildInfo
private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,?> runWithRetryOptionsAndBuildInfo(com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack, ?> p_328748_, Function<com.mojang.brigadier.context.CommandContext<CommandSourceStack>, TestCommand.Runner> p_328595_) -
register
-
resetGameTestInfo
-
toGameTestInfos
static Stream<GameTestInfo> toGameTestInfos(CommandSourceStack p_329247_, RetryOptions p_336246_, StructureBlockPosFinder p_334897_) -
toGameTestInfo
static Stream<GameTestInfo> toGameTestInfo(CommandSourceStack p_330917_, RetryOptions p_332428_, TestFunctionFinder p_328880_, int p_327985_) -
createGameTestInfo
private static Optional<GameTestInfo> createGameTestInfo(BlockPos p_332856_, ServerLevel p_328153_, RetryOptions p_330368_) -
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_333535_, ServerLevel p_333108_, GameTestRunner p_333430_) -
saveAndExportTestStructure
-
exportTestStructure
-
verifyStructureExists
-
createTestPositionAround
-
say
-
importTestStructure
-
say
-