Package net.minecraft.server.command
Class TestCommand
java.lang.Object
net.minecraft.server.command.TestCommand
- Mappings:
Namespace Name official to
intermediary net/minecraft/class_4527
named net/minecraft/server/command/TestCommand
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
private static final record
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final int
private static final int
static final int
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 Logger
private static final TestFinder.Runners
<TestCommand.Runner> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
checkStructure
(ServerWorld world, String templateId) private static int
executeCreate
(ServerCommandSource source, String testName, int x, int y, int z) private static int
executeExport
(ServerCommandSource source, String testName) private static int
executeImport
(ServerCommandSource source, String testName) private static int
executePos
(ServerCommandSource source, String variableName) (package private) static int
export
(ServerCommandSource source, StructureBlockBlockEntity blockEntity) private static Optional
<GameTestState> find
(BlockPos pos, ServerWorld world, TestAttemptConfig config) (package private) static BlockPos
getStructurePos
(ServerCommandSource source) static void
register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) private static int
reset
(GameTestState state) (package private) static void
sendMessage
(ServerCommandSource source, String message) (package private) static void
sendMessage
(ServerWorld world, String message, Formatting formatting) (package private) static int
start
(ServerCommandSource source, ServerWorld world, TestRunContext context) (package private) static int
stop()
(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 a
Lto;a:I
intermediary field_33180
Lnet/minecraft/class_4527;field_33180:I
named field_33180
Lnet/minecraft/server/command/TestCommand;field_33180:I
-
field_33181
public static final int field_33181- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lto;b:I
intermediary field_33181
Lnet/minecraft/class_4527;field_33181:I
named field_33181
Lnet/minecraft/server/command/TestCommand;field_33181:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector official c
Lto;c:Lorg/slf4j/Logger;
intermediary field_45665
Lnet/minecraft/class_4527;field_45665:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/server/command/TestCommand;LOGGER:Lorg/slf4j/Logger;
-
field_33178
private static final int field_33178- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lto;d:I
intermediary field_33178
Lnet/minecraft/class_4527;field_33178:I
named field_33178
Lnet/minecraft/server/command/TestCommand;field_33178:I
-
field_33179
private static final int field_33179- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lto;e:I
intermediary field_33179
Lnet/minecraft/class_4527;field_33179:I
named field_33179
Lnet/minecraft/server/command/TestCommand;field_33179:I
-
field_33182
private static final int field_33182- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lto;f:I
intermediary field_33182
Lnet/minecraft/class_4527;field_33182:I
named field_33182
Lnet/minecraft/server/command/TestCommand;field_33182:I
-
field_33183
private static final int field_33183- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lto;g:I
intermediary field_33183
Lnet/minecraft/class_4527;field_33183:I
named field_33183
Lnet/minecraft/server/command/TestCommand;field_33183:I
-
field_33184
private static final int field_33184- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lto;h:I
intermediary field_33184
Lnet/minecraft/class_4527;field_33184:I
named field_33184
Lnet/minecraft/server/command/TestCommand;field_33184:I
-
field_33185
private static final int field_33185- See Also:
- Mappings:
Namespace Name Mixin selector official i
Lto;i:I
intermediary field_33185
Lnet/minecraft/class_4527;field_33185:I
named field_33185
Lnet/minecraft/server/command/TestCommand;field_33185:I
-
field_33186
private static final int field_33186- See Also:
- Mappings:
Namespace Name Mixin selector official j
Lto;j:I
intermediary field_33186
Lnet/minecraft/class_4527;field_33186:I
named field_33186
Lnet/minecraft/server/command/TestCommand;field_33186:I
-
BLOCK_ENTITY_NOT_FOUND_TEXT
- See Also:
- Mappings:
Namespace Name Mixin selector official k
Lto;k:Ljava/lang/String;
intermediary field_48504
Lnet/minecraft/class_4527;field_48504:Ljava/lang/String;
named BLOCK_ENTITY_NOT_FOUND_TEXT
Lnet/minecraft/server/command/TestCommand;BLOCK_ENTITY_NOT_FOUND_TEXT:Ljava/lang/String;
-
RUNNERS
- Mappings:
Namespace Name Mixin selector official l
Lto;l:Ltp$a;
intermediary field_48505
Lnet/minecraft/class_4527;field_48505:Lnet/minecraft/class_9123$class_9124;
named RUNNERS
Lnet/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 a
Lto;a(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
intermediary method_56258
Lnet/minecraft/class_4527;method_56258(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
named testAttemptConfig
Lnet/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 a
Lto;a(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
intermediary method_56257
Lnet/minecraft/class_4527;method_56257(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
named testAttemptConfig
Lnet/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 b
Lto;b(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
intermediary method_56268
Lnet/minecraft/class_4527;method_56268(Lcom/mojang/brigadier/builder/ArgumentBuilder;Ljava/util/function/Function;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
named testAttemptAndPlacementConfig
Lnet/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 a
Lto;a(Lcom/mojang/brigadier/CommandDispatcher;)V
intermediary method_22270
Lnet/minecraft/class_4527;method_22270(Lcom/mojang/brigadier/CommandDispatcher;)V
named register
Lnet/minecraft/server/command/TestCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
reset
- Mappings:
Namespace Name Mixin selector official a
Lto;a(Lsw;)I
intermediary method_56267
Lnet/minecraft/class_4527;method_56267(Lnet/minecraft/class_4517;)I
named reset
Lnet/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 a
Lto;a(Led;Ltj;Ltk;)Ljava/util/stream/Stream;
intermediary method_56261
Lnet/minecraft/class_4527;method_56261(Lnet/minecraft/class_2168;Lnet/minecraft/class_9118;Lnet/minecraft/class_9119;)Ljava/util/stream/Stream;
named stream
Lnet/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 a
Lto;a(Led;Ltj;Lts;I)Ljava/util/stream/Stream;
intermediary method_56262
Lnet/minecraft/class_4527;method_56262(Lnet/minecraft/class_2168;Lnet/minecraft/class_9118;Lnet/minecraft/class_9125;I)Ljava/util/stream/Stream;
named stream
Lnet/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 a
Lto;a(Lin;Laqh;Ltj;)Ljava/util/Optional;
intermediary method_56264
Lnet/minecraft/class_4527;method_56264(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;Lnet/minecraft/class_9118;)Ljava/util/Optional;
named find
Lnet/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 a
Lto;a(Led;Ljava/lang/String;III)I
intermediary method_22268
Lnet/minecraft/class_4527;method_22268(Lnet/minecraft/class_2168;Ljava/lang/String;III)I
named executeCreate
Lnet/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 a
Lto;a(Led;Ljava/lang/String;)I
intermediary method_22264
Lnet/minecraft/class_4527;method_22264(Lnet/minecraft/class_2168;Ljava/lang/String;)I
named executePos
Lnet/minecraft/server/command/TestCommand;executePos(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)I
-
stop
static int stop()- Mappings:
Namespace Name Mixin selector official a
Lto;a()I
intermediary method_56254
Lnet/minecraft/class_4527;method_56254()I
named stop
Lnet/minecraft/server/command/TestCommand;stop()I
-
start
- Mappings:
Namespace Name Mixin selector official a
Lto;a(Led;Laqh;Lsz;)I
intermediary method_56259
Lnet/minecraft/class_4527;method_56259(Lnet/minecraft/class_2168;Lnet/minecraft/class_3218;Lnet/minecraft/class_4520;)I
named start
Lnet/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 a
Lto;a(Led;Ldpb;)I
intermediary method_54905
Lnet/minecraft/class_4527;method_54905(Lnet/minecraft/class_2168;Lnet/minecraft/class_2633;)I
named export
Lnet/minecraft/server/command/TestCommand;export(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/block/entity/StructureBlockBlockEntity;)I
-
executeExport
- Mappings:
Namespace Name Mixin selector official b
Lto;b(Led;Ljava/lang/String;)I
intermediary method_22282
Lnet/minecraft/class_4527;method_22282(Lnet/minecraft/class_2168;Ljava/lang/String;)I
named executeExport
Lnet/minecraft/server/command/TestCommand;executeExport(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)I
-
checkStructure
- Mappings:
Namespace Name Mixin selector official a
Lto;a(Laqh;Ljava/lang/String;)Z
intermediary method_54904
Lnet/minecraft/class_4527;method_54904(Lnet/minecraft/class_3218;Ljava/lang/String;)Z
named checkStructure
Lnet/minecraft/server/command/TestCommand;checkStructure(Lnet/minecraft/server/world/ServerWorld;Ljava/lang/String;)Z
-
getStructurePos
- Mappings:
Namespace Name Mixin selector official a
Lto;a(Led;)Lin;
intermediary method_54850
Lnet/minecraft/class_4527;method_54850(Lnet/minecraft/class_2168;)Lnet/minecraft/class_2338;
named getStructurePos
Lnet/minecraft/server/command/TestCommand;getStructurePos(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/util/math/BlockPos;
-
sendMessage
- Mappings:
Namespace Name Mixin selector official c
Lto;c(Led;Ljava/lang/String;)V
intermediary method_22278
Lnet/minecraft/class_4527;method_22278(Lnet/minecraft/class_2168;Ljava/lang/String;)V
named sendMessage
Lnet/minecraft/server/command/TestCommand;sendMessage(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)V
-
executeImport
- Mappings:
Namespace Name Mixin selector official d
Lto;d(Led;Ljava/lang/String;)I
intermediary method_22285
Lnet/minecraft/class_4527;method_22285(Lnet/minecraft/class_2168;Ljava/lang/String;)I
named executeImport
Lnet/minecraft/server/command/TestCommand;executeImport(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)I
-
sendMessage
- Mappings:
Namespace Name Mixin selector official a
Lto;a(Laqh;Ljava/lang/String;Ln;)V
intermediary method_22275
Lnet/minecraft/class_4527;method_22275(Lnet/minecraft/class_3218;Ljava/lang/String;Lnet/minecraft/class_124;)V
named sendMessage
Lnet/minecraft/server/command/TestCommand;sendMessage(Lnet/minecraft/server/world/ServerWorld;Ljava/lang/String;Lnet/minecraft/util/Formatting;)V
-