Package net.minecraft.server.command
Class TestCommand
java.lang.Object
net.minecraft.server.command.TestCommand
- Mappings:
Namespace Name official tcintermediary net/minecraft/class_4527named net/minecraft/server/command/TestCommand
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordprivate static final recordstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final intprivate static final intstatic final intstatic final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final Loggerprivate static final TestFinder.Runners<TestCommand.Runner> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleancheckStructure(ServerWorld world, String templateId) private static intexecuteCreate(ServerCommandSource source, String testName, int x, int y, int z) private static intexecuteExport(ServerCommandSource source, String testName) private static intexecuteImport(ServerCommandSource source, String testName) private static intexecutePos(ServerCommandSource source, String variableName) (package private) static intexport(ServerCommandSource source, StructureBlockBlockEntity blockEntity) private static Optional<GameTestState> find(BlockPos pos, ServerWorld world, TestAttemptConfig config) (package private) static BlockPosgetStructurePos(ServerCommandSource source) static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) private static intreset(GameTestState state) (package private) static voidsendMessage(ServerCommandSource source, String message) (package private) static voidsendMessage(ServerWorld world, String message, Formatting formatting) (package private) static intstart(ServerCommandSource source, ServerWorld world, TestRunContext context) (package private) static intstop()(package private) static Stream<GameTestState> stream(ServerCommandSource source, TestAttemptConfig config, StructureBlockFinder finder) (package private) static Stream<GameTestState> stream(ServerCommandSource source, TestAttemptConfig config, TestFunctionFinder finder, int rotationSteps) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> testAttemptAndPlacementConfig(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, Function<com.mojang.brigadier.context.CommandContext<ServerCommandSource>, TestCommand.Runner> callback) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> testAttemptConfig(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, Function<com.mojang.brigadier.context.CommandContext<ServerCommandSource>, TestCommand.Runner> callback) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> testAttemptConfig(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, Function<com.mojang.brigadier.context.CommandContext<ServerCommandSource>, TestCommand.Runner> callback, Function<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>> extraConfigAdder)
-
Field Details
-
field_33180
public static final int field_33180- See Also:
- Mappings:
Namespace Name Mixin selector official aLtc;a:Iintermediary field_33180Lnet/minecraft/class_4527;field_33180:Inamed field_33180Lnet/minecraft/server/command/TestCommand;field_33180:I
-
field_33181
public static final int field_33181- See Also:
- Mappings:
Namespace Name Mixin selector official bLtc;b:Iintermediary field_33181Lnet/minecraft/class_4527;field_33181:Inamed field_33181Lnet/minecraft/server/command/TestCommand;field_33181:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector official cLtc;c:Lorg/slf4j/Logger;intermediary field_45665Lnet/minecraft/class_4527;field_45665:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/server/command/TestCommand;LOGGER:Lorg/slf4j/Logger;
-
field_33178
private static final int field_33178- See Also:
- Mappings:
Namespace Name Mixin selector official dLtc;d:Iintermediary field_33178Lnet/minecraft/class_4527;field_33178:Inamed field_33178Lnet/minecraft/server/command/TestCommand;field_33178:I
-
field_33179
private static final int field_33179- See Also:
- Mappings:
Namespace Name Mixin selector official eLtc;e:Iintermediary field_33179Lnet/minecraft/class_4527;field_33179:Inamed field_33179Lnet/minecraft/server/command/TestCommand;field_33179:I
-
field_33182
private static final int field_33182- See Also:
- Mappings:
Namespace Name Mixin selector official fLtc;f:Iintermediary field_33182Lnet/minecraft/class_4527;field_33182:Inamed field_33182Lnet/minecraft/server/command/TestCommand;field_33182:I
-
field_33183
private static final int field_33183- See Also:
- Mappings:
Namespace Name Mixin selector official gLtc;g:Iintermediary field_33183Lnet/minecraft/class_4527;field_33183:Inamed field_33183Lnet/minecraft/server/command/TestCommand;field_33183:I
-
field_33184
private static final int field_33184- See Also:
- Mappings:
Namespace Name Mixin selector official hLtc;h:Iintermediary field_33184Lnet/minecraft/class_4527;field_33184:Inamed field_33184Lnet/minecraft/server/command/TestCommand;field_33184:I
-
field_33185
private static final int field_33185- See Also:
- Mappings:
Namespace Name Mixin selector official iLtc;i:Iintermediary field_33185Lnet/minecraft/class_4527;field_33185:Inamed field_33185Lnet/minecraft/server/command/TestCommand;field_33185:I
-
field_33186
private static final int field_33186- See Also:
- Mappings:
Namespace Name Mixin selector official jLtc;j:Iintermediary field_33186Lnet/minecraft/class_4527;field_33186:Inamed field_33186Lnet/minecraft/server/command/TestCommand;field_33186:I
-
BLOCK_ENTITY_NOT_FOUND_TEXT
- See Also:
- Mappings:
Namespace Name Mixin selector official kLtc;k:Ljava/lang/String;intermediary field_48504Lnet/minecraft/class_4527;field_48504:Ljava/lang/String;named BLOCK_ENTITY_NOT_FOUND_TEXTLnet/minecraft/server/command/TestCommand;BLOCK_ENTITY_NOT_FOUND_TEXT:Ljava/lang/String;
-
RUNNERS
- Mappings:
Namespace Name Mixin selector official lLtc;l:Ltd$a;intermediary field_48505Lnet/minecraft/class_4527;field_48505:Lnet/minecraft/class_9123$class_9124;named RUNNERSLnet/minecraft/server/command/TestCommand;RUNNERS:Lnet/minecraft/server/command/TestFinder$Runners;
-
-
Constructor Details
-
TestCommand
public TestCommand()
-
-
Method Details
-
testAttemptConfig
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> testAttemptConfig(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, Function<com.mojang.brigadier.context.CommandContext<ServerCommandSource>, TestCommand.Runner> callback, Function<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>> extraConfigAdder) - Mappings:
Namespace Name Mixin selector official aLtc;a(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;intermediary method_56258Lnet/minecraft/class_4527;method_56258(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;named testAttemptConfigLnet/minecraft/server/command/TestCommand;testAttemptConfig(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
-
testAttemptConfig
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> testAttemptConfig(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, Function<com.mojang.brigadier.context.CommandContext<ServerCommandSource>, TestCommand.Runner> callback) - Mappings:
Namespace Name Mixin selector official aLtc;a(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;intermediary method_56257Lnet/minecraft/class_4527;method_56257(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;named testAttemptConfigLnet/minecraft/server/command/TestCommand;testAttemptConfig(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
-
testAttemptAndPlacementConfig
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> testAttemptAndPlacementConfig(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, Function<com.mojang.brigadier.context.CommandContext<ServerCommandSource>, TestCommand.Runner> callback) - Mappings:
Namespace Name Mixin selector official bLtc;b(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;intermediary method_56268Lnet/minecraft/class_4527;method_56268(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;named testAttemptAndPlacementConfigLnet/minecraft/server/command/TestCommand;testAttemptAndPlacementConfig(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
-
register
- Mappings:
Namespace Name Mixin selector official aLtc;a(Lcom/mojang/brigadier/CommandDispatcher;)Vintermediary method_22270Lnet/minecraft/class_4527;method_22270(Lcom/mojang/brigadier/CommandDispatcher;)Vnamed registerLnet/minecraft/server/command/TestCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
reset
- Mappings:
Namespace Name Mixin selector official aLtc;a(Lsk;)Iintermediary method_56267Lnet/minecraft/class_4527;method_56267(Lnet/minecraft/class_4517;)Inamed resetLnet/minecraft/server/command/TestCommand;reset(Lnet/minecraft/test/GameTestState;)I
-
stream
static Stream<GameTestState> stream(ServerCommandSource source, TestAttemptConfig config, StructureBlockFinder finder) - Mappings:
Namespace Name Mixin selector official aLtc;a(Ldv;Lsx;Lsy;)Ljava/util/stream/Stream;intermediary method_56261Lnet/minecraft/class_4527;method_56261(Lnet/minecraft/class_2168;Lnet/minecraft/class_9118;Lnet/minecraft/class_9119;)Ljava/util/stream/Stream;named streamLnet/minecraft/server/command/TestCommand;stream(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/test/TestAttemptConfig;Lnet/minecraft/test/StructureBlockFinder;)Ljava/util/stream/Stream;
-
stream
static Stream<GameTestState> stream(ServerCommandSource source, TestAttemptConfig config, TestFunctionFinder finder, int rotationSteps) - Mappings:
Namespace Name Mixin selector official aLtc;a(Ldv;Lsx;Ltg;I)Ljava/util/stream/Stream;intermediary method_56262Lnet/minecraft/class_4527;method_56262(Lnet/minecraft/class_2168;Lnet/minecraft/class_9118;Lnet/minecraft/class_9125;I)Ljava/util/stream/Stream;named streamLnet/minecraft/server/command/TestCommand;stream(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/test/TestAttemptConfig;Lnet/minecraft/test/TestFunctionFinder;I)Ljava/util/stream/Stream;
-
find
private static Optional<GameTestState> find(BlockPos pos, ServerWorld world, TestAttemptConfig config) - Mappings:
Namespace Name Mixin selector official aLtc;a(Lid;Lapu;Lsx;)Ljava/util/Optional;intermediary method_56264Lnet/minecraft/class_4527;method_56264(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;Lnet/minecraft/class_9118;)Ljava/util/Optional;named findLnet/minecraft/server/command/TestCommand;find(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/test/TestAttemptConfig;)Ljava/util/Optional;
-
executeCreate
- Mappings:
Namespace Name Mixin selector official aLtc;a(Ldv;Ljava/lang/String;III)Iintermediary method_22268Lnet/minecraft/class_4527;method_22268(Lnet/minecraft/class_2168;Ljava/lang/String;III)Inamed executeCreateLnet/minecraft/server/command/TestCommand;executeCreate(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;III)I
-
executePos
private static int executePos(ServerCommandSource source, String variableName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLtc;a(Ldv;Ljava/lang/String;)Iintermediary method_22264Lnet/minecraft/class_4527;method_22264(Lnet/minecraft/class_2168;Ljava/lang/String;)Inamed executePosLnet/minecraft/server/command/TestCommand;executePos(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)I
-
stop
static int stop()- Mappings:
Namespace Name Mixin selector official aLtc;a()Iintermediary method_56254Lnet/minecraft/class_4527;method_56254()Inamed stopLnet/minecraft/server/command/TestCommand;stop()I
-
start
- Mappings:
Namespace Name Mixin selector official aLtc;a(Ldv;Lapu;Lsn;)Iintermediary method_56259Lnet/minecraft/class_4527;method_56259(Lnet/minecraft/class_2168;Lnet/minecraft/class_3218;Lnet/minecraft/class_4520;)Inamed startLnet/minecraft/server/command/TestCommand;start(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/test/TestRunContext;)I
-
export
- Mappings:
Namespace Name Mixin selector official aLtc;a(Ldv;Ldod;)Iintermediary method_54905Lnet/minecraft/class_4527;method_54905(Lnet/minecraft/class_2168;Lnet/minecraft/class_2633;)Inamed exportLnet/minecraft/server/command/TestCommand;export(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/block/entity/StructureBlockBlockEntity;)I
-
executeExport
- Mappings:
Namespace Name Mixin selector official bLtc;b(Ldv;Ljava/lang/String;)Iintermediary method_22282Lnet/minecraft/class_4527;method_22282(Lnet/minecraft/class_2168;Ljava/lang/String;)Inamed executeExportLnet/minecraft/server/command/TestCommand;executeExport(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)I
-
checkStructure
- Mappings:
Namespace Name Mixin selector official aLtc;a(Lapu;Ljava/lang/String;)Zintermediary method_54904Lnet/minecraft/class_4527;method_54904(Lnet/minecraft/class_3218;Ljava/lang/String;)Znamed checkStructureLnet/minecraft/server/command/TestCommand;checkStructure(Lnet/minecraft/server/world/ServerWorld;Ljava/lang/String;)Z
-
getStructurePos
- Mappings:
Namespace Name Mixin selector official aLtc;a(Ldv;)Lid;intermediary method_54850Lnet/minecraft/class_4527;method_54850(Lnet/minecraft/class_2168;)Lnet/minecraft/class_2338;named getStructurePosLnet/minecraft/server/command/TestCommand;getStructurePos(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/util/math/BlockPos;
-
sendMessage
- Mappings:
Namespace Name Mixin selector official cLtc;c(Ldv;Ljava/lang/String;)Vintermediary method_22278Lnet/minecraft/class_4527;method_22278(Lnet/minecraft/class_2168;Ljava/lang/String;)Vnamed sendMessageLnet/minecraft/server/command/TestCommand;sendMessage(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)V
-
executeImport
- Mappings:
Namespace Name Mixin selector official dLtc;d(Ldv;Ljava/lang/String;)Iintermediary method_22285Lnet/minecraft/class_4527;method_22285(Lnet/minecraft/class_2168;Ljava/lang/String;)Inamed executeImportLnet/minecraft/server/command/TestCommand;executeImport(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)I
-
sendMessage
- Mappings:
Namespace Name Mixin selector official aLtc;a(Lapu;Ljava/lang/String;Ln;)Vintermediary method_22275Lnet/minecraft/class_4527;method_22275(Lnet/minecraft/class_3218;Ljava/lang/String;Lnet/minecraft/class_124;)Vnamed sendMessageLnet/minecraft/server/command/TestCommand;sendMessage(Lnet/minecraft/server/world/ServerWorld;Ljava/lang/String;Lnet/minecraft/util/Formatting;)V
-