Package net.minecraft.gametest.framework
Class TestCommand
java.lang.Object
net.minecraft.gametest.framework.TestCommand
-
Nested Class Summary
-
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 int
private static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
clearAllTests
(CommandSourceStack p_127953_, int p_127954_) private static int
createNewStructure
(CommandSourceStack p_127968_, String p_127969_, int p_127970_, int p_127971_, int p_127972_) private static int
exportAllNearbyTests
(CommandSourceStack p_298362_) private static int
exportNearestTestStructure
(CommandSourceStack p_128009_) 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
runAllNearbyTests
(CommandSourceStack p_128002_) private static int
runAllTests
(CommandSourceStack p_127956_, int p_127957_, int p_127958_) private static int
runAllTestsInClass
(CommandSourceStack p_127963_, String p_127964_, int p_127965_, int p_127966_) private static int
runLastFailedTests
(CommandSourceStack p_127983_, boolean p_127984_, int p_127985_, int p_127986_) private static int
runNearbyTest
(CommandSourceStack p_127951_) private static int
runTest
(CommandSourceStack p_127979_, TestFunction p_127980_, int p_127981_) private static void
runTest
(ServerLevel p_127930_, BlockPos p_127931_, MultipleTestTracker p_127932_) private static void
runTestPreparation
(TestFunction p_127994_, ServerLevel p_127995_) private static void
runTests
(CommandSourceStack p_127974_, Collection<TestFunction> p_127975_, int p_127976_, int p_127977_) private static void
say
(CommandSourceStack p_128004_, String p_128005_) 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 void
showTestSummaryIfAllDone
(ServerLevel p_127997_, MultipleTestTracker p_127998_)
-
Field Details
-
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:
-
STRUCTURE_BLOCK_NEARBY_SEARCH_RADIUS
private static final int STRUCTURE_BLOCK_NEARBY_SEARCH_RADIUS- See Also:
-
STRUCTURE_BLOCK_FULL_SEARCH_RADIUS
private static final int STRUCTURE_BLOCK_FULL_SEARCH_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:
-
-
Constructor Details
-
TestCommand
public TestCommand()
-
-
Method Details
-
register
-
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
-
runNearbyTest
-
runAllNearbyTests
-
runTest
private static void runTest(ServerLevel p_127930_, BlockPos p_127931_, @Nullable MultipleTestTracker p_127932_) -
showTestSummaryIfAllDone
-
clearAllTests
-
runTest
-
runTestPreparation
-
runAllTests
-
runAllTestsInClass
private static int runAllTestsInClass(CommandSourceStack p_127963_, String p_127964_, int p_127965_, int p_127966_) -
runLastFailedTests
private static int runLastFailedTests(CommandSourceStack p_127983_, boolean p_127984_, int p_127985_, int p_127986_) -
runTests
private static void runTests(CommandSourceStack p_127974_, Collection<TestFunction> p_127975_, int p_127976_, int p_127977_) -
say
-
exportNearestTestStructure
-
exportAllNearbyTests
-
exportTestStructure
-
importTestStructure
-
say
-