类 TestCommand
java.lang.Object
net.minecraft.gametest.framework.TestCommand
-
嵌套类概要
嵌套类修饰符和类型类说明static class
(专用程序包) static final record
static final record
-
字段概要
字段修饰符和类型字段说明private 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> static final int
static final int
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private 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_) (专用程序包) 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_) (专用程序包) static int
saveAndExportTestStructure
(CommandSourceStack p_309467_, StructureBlockEntity p_310131_) (专用程序包) static void
say
(CommandSourceStack p_128004_, String p_128005_) (专用程序包) static void
say
(ServerLevel p_127934_, String p_127935_, ChatFormatting p_127936_) private static int
showPos
(CommandSourceStack p_127960_, String p_127961_) (专用程序包) static int
(专用程序包) static Stream
<GameTestInfo> toGameTestInfo
(CommandSourceStack p_330917_, RetryOptions p_332428_, TestFunctionFinder p_328880_, int p_327985_) (专用程序包) static Stream
<GameTestInfo> toGameTestInfos
(CommandSourceStack p_329247_, RetryOptions p_336246_, StructureBlockPosFinder p_334897_) (专用程序包) static int
trackAndStartRunner
(CommandSourceStack p_333535_, ServerLevel p_333108_, GameTestRunner p_333430_) private static boolean
verifyStructureExists
(ServerLevel p_310841_, String p_330426_)
-
字段详细资料
-
STRUCTURE_BLOCK_NEARBY_SEARCH_RADIUS
public static final int STRUCTURE_BLOCK_NEARBY_SEARCH_RADIUS- 另请参阅:
-
STRUCTURE_BLOCK_FULL_SEARCH_RADIUS
public static final int STRUCTURE_BLOCK_FULL_SEARCH_RADIUS- 另请参阅:
-
VERIFY_TEST_GRID_AXIS_SIZE
public static final int VERIFY_TEST_GRID_AXIS_SIZE- 另请参阅:
-
VERIFY_TEST_BATCH_SIZE
public static final int VERIFY_TEST_BATCH_SIZE- 另请参阅:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DEFAULT_CLEAR_RADIUS
private static final int DEFAULT_CLEAR_RADIUS- 另请参阅:
-
MAX_CLEAR_RADIUS
private static final int MAX_CLEAR_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- 另请参阅:
-
STRUCTURE_BLOCK_ENTITY_COULD_NOT_BE_FOUND
- 另请参阅:
-
testFinder
-
-
构造器详细资料
-
TestCommand
public TestCommand()
-
-
方法详细资料
-
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 - 抛出:
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
-