类 TestCommand
java.lang.Object
net.minecraft.gametest.framework.TestCommand
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int
clearAllTests
(CommandSourceStack pSource, int pRadius) private static int
createNewStructure
(CommandSourceStack pSource, String pStructureName, int pX, int pY, int pZ) private static int
private static int
exportTestStructure
(CommandSourceStack pSource, String pStructurePath) private static int
importTestStructure
(CommandSourceStack pSource, String pStructurePath) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static int
runAllNearbyTests
(CommandSourceStack pSource) private static int
runAllTests
(CommandSourceStack pSource, int pRotationSteps, int pTestsPerRow) private static int
runAllTestsInClass
(CommandSourceStack pSource, String pTestClassName, int pRotationSteps, int pTestsPerRow) private static int
runLastFailedTests
(CommandSourceStack pSource, boolean pRunOnlyRequired, int pRotationSteps, int pTestsPerRow) private static int
runNearbyTest
(CommandSourceStack pSource) private static int
runTest
(CommandSourceStack pSource, TestFunction pFunction, int pRotationSteps) private static void
runTest
(ServerLevel pServerLevel, BlockPos pPos, MultipleTestTracker pTracker) private static void
runTestPreparation
(TestFunction pFunction, ServerLevel pServerLevel) private static void
runTests
(CommandSourceStack pSource, Collection<TestFunction> p_127975_, int pRotationSteps, int pTestsPerRow) private static void
say
(CommandSourceStack pSource, String pMessage) private static void
say
(ServerLevel pServerLevel, String pMessage, ChatFormatting pFormatting) private static int
showPos
(CommandSourceStack pSource, String p_127961_) (专用程序包) static void
showTestSummaryIfAllDone
(ServerLevel pServerLevel, MultipleTestTracker pTracker)
-
字段详细资料
-
DEFAULT_CLEAR_RADIUS
private static final int DEFAULT_CLEAR_RADIUS- 另请参阅:
-
MAX_CLEAR_RADIUS
private static final int MAX_CLEAR_RADIUS- 另请参阅:
-
STRUCTURE_BLOCK_NEARBY_SEARCH_RADIUS
private static final int STRUCTURE_BLOCK_NEARBY_SEARCH_RADIUS- 另请参阅:
-
STRUCTURE_BLOCK_FULL_SEARCH_RADIUS
private static final int STRUCTURE_BLOCK_FULL_SEARCH_RADIUS- 另请参阅:
-
TEST_POS_Z_OFFSET_FROM_PLAYER
private static final int TEST_POS_Z_OFFSET_FROM_PLAYER- 另请参阅:
-
SHOW_POS_DURATION_MS
private static final int SHOW_POS_DURATION_MS- 另请参阅:
-
DEFAULT_X_SIZE
private static final int DEFAULT_X_SIZE- 另请参阅:
-
DEFAULT_Y_SIZE
private static final int DEFAULT_Y_SIZE- 另请参阅:
-
DEFAULT_Z_SIZE
private static final int DEFAULT_Z_SIZE- 另请参阅:
-
-
构造器详细资料
-
TestCommand
public TestCommand()
-
-
方法详细资料
-
register
-
createNewStructure
private static int createNewStructure(CommandSourceStack pSource, String pStructureName, int pX, int pY, int pZ) -
showPos
private static int showPos(CommandSourceStack pSource, String p_127961_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
runNearbyTest
-
runAllNearbyTests
-
runTest
private static void runTest(ServerLevel pServerLevel, BlockPos pPos, @Nullable MultipleTestTracker pTracker) -
showTestSummaryIfAllDone
-
clearAllTests
-
runTest
-
runTestPreparation
-
runAllTests
-
runAllTestsInClass
private static int runAllTestsInClass(CommandSourceStack pSource, String pTestClassName, int pRotationSteps, int pTestsPerRow) -
runLastFailedTests
private static int runLastFailedTests(CommandSourceStack pSource, boolean pRunOnlyRequired, int pRotationSteps, int pTestsPerRow) -
runTests
private static void runTests(CommandSourceStack pSource, Collection<TestFunction> p_127975_, int pRotationSteps, int pTestsPerRow) -
say
-
exportNearestTestStructure
-
exportTestStructure
-
importTestStructure
-
say
-