Package net.minecraft.server.command
Class TestCommand
java.lang.Object
net.minecraft.server.command.TestCommand
- Mappings:
Namespace Name named net/minecraft/server/command/TestCommandintermediary net/minecraft/class_4527official tp
-
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 named field_33180Lnet/minecraft/server/command/TestCommand;field_33180:Iintermediary field_33180Lnet/minecraft/class_4527;field_33180:Iofficial aLtp;a:I
-
field_33181
public static final int field_33181- See Also:
- Mappings:
Namespace Name Mixin selector named field_33181Lnet/minecraft/server/command/TestCommand;field_33181:Iintermediary field_33181Lnet/minecraft/class_4527;field_33181:Iofficial bLtp;b:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/server/command/TestCommand;LOGGER:Lorg/slf4j/Logger;intermediary field_45665Lnet/minecraft/class_4527;field_45665:Lorg/slf4j/Logger;official cLtp;c:Lorg/slf4j/Logger;
-
field_33178
private static final int field_33178- See Also:
- Mappings:
Namespace Name Mixin selector named field_33178Lnet/minecraft/server/command/TestCommand;field_33178:Iintermediary field_33178Lnet/minecraft/class_4527;field_33178:Iofficial dLtp;d:I
-
field_33179
private static final int field_33179- See Also:
- Mappings:
Namespace Name Mixin selector named field_33179Lnet/minecraft/server/command/TestCommand;field_33179:Iintermediary field_33179Lnet/minecraft/class_4527;field_33179:Iofficial eLtp;e:I
-
field_33182
private static final int field_33182- See Also:
- Mappings:
Namespace Name Mixin selector named field_33182Lnet/minecraft/server/command/TestCommand;field_33182:Iintermediary field_33182Lnet/minecraft/class_4527;field_33182:Iofficial fLtp;f:I
-
field_33183
private static final int field_33183- See Also:
- Mappings:
Namespace Name Mixin selector named field_33183Lnet/minecraft/server/command/TestCommand;field_33183:Iintermediary field_33183Lnet/minecraft/class_4527;field_33183:Iofficial gLtp;g:I
-
field_33184
private static final int field_33184- See Also:
- Mappings:
Namespace Name Mixin selector named field_33184Lnet/minecraft/server/command/TestCommand;field_33184:Iintermediary field_33184Lnet/minecraft/class_4527;field_33184:Iofficial hLtp;h:I
-
field_33185
private static final int field_33185- See Also:
- Mappings:
Namespace Name Mixin selector named field_33185Lnet/minecraft/server/command/TestCommand;field_33185:Iintermediary field_33185Lnet/minecraft/class_4527;field_33185:Iofficial iLtp;i:I
-
field_33186
private static final int field_33186- See Also:
- Mappings:
Namespace Name Mixin selector named field_33186Lnet/minecraft/server/command/TestCommand;field_33186:Iintermediary field_33186Lnet/minecraft/class_4527;field_33186:Iofficial jLtp;j:I
-
BLOCK_ENTITY_NOT_FOUND_TEXT
- See Also:
- Mappings:
Namespace Name Mixin selector named BLOCK_ENTITY_NOT_FOUND_TEXTLnet/minecraft/server/command/TestCommand;BLOCK_ENTITY_NOT_FOUND_TEXT:Ljava/lang/String;intermediary field_48504Lnet/minecraft/class_4527;field_48504:Ljava/lang/String;official kLtp;k:Ljava/lang/String;
-
RUNNERS
- Mappings:
Namespace Name Mixin selector named RUNNERSLnet/minecraft/server/command/TestCommand;RUNNERS:Lnet/minecraft/server/command/TestFinder$Runners;intermediary field_48505Lnet/minecraft/class_4527;field_48505:Lnet/minecraft/class_9123$class_9124;official lLtp;l:Ltq$a;
-
-
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 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;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;official aLtp;a(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 named testAttemptConfigLnet/minecraft/server/command/TestCommand;testAttemptConfig(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;official aLtp;a(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 named testAttemptAndPlacementConfigLnet/minecraft/server/command/TestCommand;testAttemptAndPlacementConfig(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;official bLtp;b(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
-
register
- Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/server/command/TestCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)Vintermediary method_22270Lnet/minecraft/class_4527;method_22270(Lcom/mojang/brigadier/CommandDispatcher;)Vofficial aLtp;a(Lcom/mojang/brigadier/CommandDispatcher;)V
-
reset
- Mappings:
Namespace Name Mixin selector named resetLnet/minecraft/server/command/TestCommand;reset(Lnet/minecraft/test/GameTestState;)Iintermediary method_56267Lnet/minecraft/class_4527;method_56267(Lnet/minecraft/class_4517;)Iofficial aLtp;a(Lsx;)I
-
stream
static Stream<GameTestState> stream(ServerCommandSource source, TestAttemptConfig config, StructureBlockFinder finder) - Mappings:
Namespace Name Mixin selector named streamLnet/minecraft/server/command/TestCommand;stream(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/test/TestAttemptConfig;Lnet/minecraft/test/StructureBlockFinder;)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;official aLtp;a(Let;Ltk;Ltl;)Ljava/util/stream/Stream;
-
stream
static Stream<GameTestState> stream(ServerCommandSource source, TestAttemptConfig config, TestFunctionFinder finder, int rotationSteps) - Mappings:
Namespace Name Mixin selector 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;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;official aLtp;a(Let;Ltk;Ltt;I)Ljava/util/stream/Stream;
-
find
private static Optional<GameTestState> find(BlockPos pos, ServerWorld world, TestAttemptConfig config) - Mappings:
Namespace Name Mixin selector named findLnet/minecraft/server/command/TestCommand;find(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/test/TestAttemptConfig;)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;official aLtp;a(Ljd;Laqu;Ltk;)Ljava/util/Optional;
-
executeCreate
- Mappings:
Namespace Name Mixin selector named executeCreateLnet/minecraft/server/command/TestCommand;executeCreate(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;III)Iintermediary method_22268Lnet/minecraft/class_4527;method_22268(Lnet/minecraft/class_2168;Ljava/lang/String;III)Iofficial aLtp;a(Let;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 named executePosLnet/minecraft/server/command/TestCommand;executePos(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)Iintermediary method_22264Lnet/minecraft/class_4527;method_22264(Lnet/minecraft/class_2168;Ljava/lang/String;)Iofficial aLtp;a(Let;Ljava/lang/String;)I
-
stop
static int stop()- Mappings:
Namespace Name Mixin selector named stopLnet/minecraft/server/command/TestCommand;stop()Iintermediary method_56254Lnet/minecraft/class_4527;method_56254()Iofficial aLtp;a()I
-
start
- Mappings:
Namespace Name Mixin selector named startLnet/minecraft/server/command/TestCommand;start(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/test/TestRunContext;)Iintermediary method_56259Lnet/minecraft/class_4527;method_56259(Lnet/minecraft/class_2168;Lnet/minecraft/class_3218;Lnet/minecraft/class_4520;)Iofficial aLtp;a(Let;Laqu;Lta;)I
-
export
- Mappings:
Namespace Name Mixin selector named exportLnet/minecraft/server/command/TestCommand;export(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/block/entity/StructureBlockBlockEntity;)Iintermediary method_54905Lnet/minecraft/class_4527;method_54905(Lnet/minecraft/class_2168;Lnet/minecraft/class_2633;)Iofficial aLtp;a(Let;Ldrx;)I
-
executeExport
- Mappings:
Namespace Name Mixin selector named executeExportLnet/minecraft/server/command/TestCommand;executeExport(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)Iintermediary method_22282Lnet/minecraft/class_4527;method_22282(Lnet/minecraft/class_2168;Ljava/lang/String;)Iofficial bLtp;b(Let;Ljava/lang/String;)I
-
checkStructure
- Mappings:
Namespace Name Mixin selector named checkStructureLnet/minecraft/server/command/TestCommand;checkStructure(Lnet/minecraft/server/world/ServerWorld;Ljava/lang/String;)Zintermediary method_54904Lnet/minecraft/class_4527;method_54904(Lnet/minecraft/class_3218;Ljava/lang/String;)Zofficial aLtp;a(Laqu;Ljava/lang/String;)Z
-
getStructurePos
- Mappings:
Namespace Name Mixin selector named getStructurePosLnet/minecraft/server/command/TestCommand;getStructurePos(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/util/math/BlockPos;intermediary method_54850Lnet/minecraft/class_4527;method_54850(Lnet/minecraft/class_2168;)Lnet/minecraft/class_2338;official aLtp;a(Let;)Ljd;
-
sendMessage
- Mappings:
Namespace Name Mixin selector named sendMessageLnet/minecraft/server/command/TestCommand;sendMessage(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)Vintermediary method_22278Lnet/minecraft/class_4527;method_22278(Lnet/minecraft/class_2168;Ljava/lang/String;)Vofficial cLtp;c(Let;Ljava/lang/String;)V
-
executeImport
- Mappings:
Namespace Name Mixin selector named executeImportLnet/minecraft/server/command/TestCommand;executeImport(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)Iintermediary method_22285Lnet/minecraft/class_4527;method_22285(Lnet/minecraft/class_2168;Ljava/lang/String;)Iofficial dLtp;d(Let;Ljava/lang/String;)I
-
sendMessage
- Mappings:
Namespace Name Mixin selector named sendMessageLnet/minecraft/server/command/TestCommand;sendMessage(Lnet/minecraft/server/world/ServerWorld;Ljava/lang/String;Lnet/minecraft/util/Formatting;)Vintermediary method_22275Lnet/minecraft/class_4527;method_22275(Lnet/minecraft/class_3218;Ljava/lang/String;Lnet/minecraft/class_124;)Vofficial aLtp;a(Laqu;Ljava/lang/String;Ln;)V
-