Package net.minecraft.gametest.framework
Class TestCommand
java.lang.Object
net.minecraft.gametest.framework.TestCommand
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static intprivate static intprivate static intprivate static intprivate static intprivate static intprivate static intprivate static intprivate static int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static intclearAllTests(CommandSourceStack p_127953_, int p_127954_)private static intcreateNewStructure(CommandSourceStack p_127968_, String p_127969_, int p_127970_, int p_127971_, int p_127972_)private static intexportNearestTestStructure(CommandSourceStack p_128009_)private static intexportTestStructure(CommandSourceStack p_128011_, String p_128012_)private static intimportTestStructure(CommandSourceStack p_128016_, String p_128017_)static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_127947_)private static intrunAllNearbyTests(CommandSourceStack p_128002_)private static intrunAllTests(CommandSourceStack p_127956_, int p_127957_, int p_127958_)private static intrunAllTestsInClass(CommandSourceStack p_127963_, String p_127964_, int p_127965_, int p_127966_)private static intrunLastFailedTests(CommandSourceStack p_127983_, boolean p_127984_, int p_127985_, int p_127986_)private static intrunNearbyTest(CommandSourceStack p_127951_)private static intrunTest(CommandSourceStack p_127979_, TestFunction p_127980_, int p_127981_)private static voidrunTest(ServerLevel p_127930_, BlockPos p_127931_, MultipleTestTracker p_127932_)private static voidrunTestPreparation(TestFunction p_127994_, ServerLevel p_127995_)private static voidrunTests(CommandSourceStack p_127974_, Collection<TestFunction> p_127975_, int p_127976_, int p_127977_)private static voidsay(CommandSourceStack p_128004_, String p_128005_)private static voidsay(ServerLevel p_127934_, String p_127935_, ChatFormatting p_127936_)private static intshowPos(CommandSourceStack p_127960_, String p_127961_)(package private) static voidshowTestSummaryIfAllDone(ServerLevel p_127997_, MultipleTestTracker p_127998_)
- 
Field Details- 
DEFAULT_CLEAR_RADIUSprivate static final int DEFAULT_CLEAR_RADIUS- See Also:
- Constant Field Values
 
- 
MAX_CLEAR_RADIUSprivate static final int MAX_CLEAR_RADIUS- See Also:
- Constant Field Values
 
- 
STRUCTURE_BLOCK_NEARBY_SEARCH_RADIUSprivate static final int STRUCTURE_BLOCK_NEARBY_SEARCH_RADIUS- See Also:
- Constant Field Values
 
- 
STRUCTURE_BLOCK_FULL_SEARCH_RADIUSprivate static final int STRUCTURE_BLOCK_FULL_SEARCH_RADIUS- See Also:
- Constant Field Values
 
- 
TEST_POS_Z_OFFSET_FROM_PLAYERprivate static final int TEST_POS_Z_OFFSET_FROM_PLAYER- See Also:
- Constant Field Values
 
- 
SHOW_POS_DURATION_MSprivate static final int SHOW_POS_DURATION_MS- See Also:
- Constant Field Values
 
- 
DEFAULT_X_SIZEprivate static final int DEFAULT_X_SIZE- See Also:
- Constant Field Values
 
- 
DEFAULT_Y_SIZEprivate static final int DEFAULT_Y_SIZE- See Also:
- Constant Field Values
 
- 
DEFAULT_Z_SIZEprivate static final int DEFAULT_Z_SIZE- See Also:
- Constant Field Values
 
 
- 
- 
Constructor Details- 
TestCommandpublic TestCommand()
 
- 
- 
Method Details- 
register
- 
createNewStructureprivate static int createNewStructure(CommandSourceStack p_127968_, String p_127969_, int p_127970_, int p_127971_, int p_127972_)
- 
showPosprivate static int showPos(CommandSourceStack p_127960_, String p_127961_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
runNearbyTest
- 
runAllNearbyTests
- 
runTestprivate static void runTest(ServerLevel p_127930_, BlockPos p_127931_, @Nullable MultipleTestTracker p_127932_)
- 
showTestSummaryIfAllDone
- 
clearAllTests
- 
runTest
- 
runTestPreparation
- 
runAllTests
- 
runAllTestsInClassprivate static int runAllTestsInClass(CommandSourceStack p_127963_, String p_127964_, int p_127965_, int p_127966_)
- 
runLastFailedTestsprivate static int runLastFailedTests(CommandSourceStack p_127983_, boolean p_127984_, int p_127985_, int p_127986_)
- 
runTestsprivate static void runTests(CommandSourceStack p_127974_, Collection<TestFunction> p_127975_, int p_127976_, int p_127977_)
- 
say
- 
exportNearestTestStructure
- 
exportTestStructure
- 
importTestStructure
- 
say
 
-