Package net.minecraft.server.command
Class ExecuteCommand
java.lang.Object
net.minecraft.server.command.ExecuteCommand
- Mappings:
Namespace Name official accintermediary net/minecraft/class_3050named net/minecraft/server/command/ExecuteCommand
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>>private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>private static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> addBlocksConditionLogic(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, boolean positive, boolean masked) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> addConditionArguments(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> argumentBuilder, boolean positive, CommandRegistryAccess commandRegistryAccess) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> addConditionLogic(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, boolean positive, ExecuteCommand.Condition condition) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> addStoreArguments(com.mojang.brigadier.tree.LiteralCommandNode<ServerCommandSource> node, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> builder, boolean requestResult) private static intcountPathMatches(DataCommandObject object, NbtPathArgumentType.NbtPath path) private static intexecuteNegativeBlockCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked) private static intexecutePositiveBlockCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked) private static ServerCommandSourceexecuteStoreBossbar(ServerCommandSource source, CommandBossBar bossBar, boolean storeInValue, boolean requestResult) private static ServerCommandSourceexecuteStoreData(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, IntFunction<NbtElement> nbtSetter, boolean requestResult) private static ServerCommandSourceexecuteStoreScore(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, boolean requestResult) private static com.mojang.brigadier.Command<ServerCommandSource>getExistsConditionExecute(boolean positive, ExecuteCommand.ExistsCondition condition) private static Collection<ServerCommandSource>getSourceOrEmptyForConditionFork(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean positive, boolean value) static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess) private static OptionalInttestBlocksCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked) private static OptionalInttestBlocksCondition(ServerWorld world, BlockPos start, BlockPos end, BlockPos destination, boolean masked) private static booleantestLootCondition(ServerCommandSource source, LootCondition condition) private static booleantestScoreCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BiPredicate<Integer, Integer> condition) private static booleantestScoreMatch(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, NumberRange.IntRange range)
-
Field Details
-
MAX_BLOCKS
private static final int MAX_BLOCKS- See Also:
- Mappings:
Namespace Name Mixin selector official aLacc;a:Iintermediary field_33390Lnet/minecraft/class_3050;field_33390:Inamed MAX_BLOCKSLnet/minecraft/server/command/ExecuteCommand;MAX_BLOCKS:I
-
BLOCKS_TOOBIG_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType BLOCKS_TOOBIG_EXCEPTION- Mappings:
Namespace Name Mixin selector official bLacc;b:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;intermediary field_13635Lnet/minecraft/class_3050;field_13635:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;named BLOCKS_TOOBIG_EXCEPTIONLnet/minecraft/server/command/ExecuteCommand;BLOCKS_TOOBIG_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
CONDITIONAL_FAIL_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType CONDITIONAL_FAIL_EXCEPTION- Mappings:
Namespace Name Mixin selector official cLacc;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_13636Lnet/minecraft/class_3050;field_13636:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named CONDITIONAL_FAIL_EXCEPTIONLnet/minecraft/server/command/ExecuteCommand;CONDITIONAL_FAIL_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
CONDITIONAL_FAIL_COUNT_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType CONDITIONAL_FAIL_COUNT_EXCEPTION- Mappings:
Namespace Name Mixin selector official dLacc;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_13637Lnet/minecraft/class_3050;field_13637:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named CONDITIONAL_FAIL_COUNT_EXCEPTIONLnet/minecraft/server/command/ExecuteCommand;CONDITIONAL_FAIL_COUNT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
BINARY_RESULT_CONSUMER
private static final BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>> BINARY_RESULT_CONSUMER- Mappings:
Namespace Name Mixin selector official eLacc;e:Ljava/util/function/BinaryOperator;intermediary field_13634Lnet/minecraft/class_3050;field_13634:Ljava/util/function/BinaryOperator;named BINARY_RESULT_CONSUMERLnet/minecraft/server/command/ExecuteCommand;BINARY_RESULT_CONSUMER:Ljava/util/function/BinaryOperator;
-
LOOT_CONDITIONS
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> LOOT_CONDITIONS- Mappings:
Namespace Name Mixin selector official fLacc;f:Lcom/mojang/brigadier/suggestion/SuggestionProvider;intermediary field_20852Lnet/minecraft/class_3050;field_20852:Lcom/mojang/brigadier/suggestion/SuggestionProvider;named LOOT_CONDITIONSLnet/minecraft/server/command/ExecuteCommand;LOOT_CONDITIONS:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
-
-
Constructor Details
-
ExecuteCommand
public ExecuteCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess) - Mappings:
Namespace Name Mixin selector official aLacc;a(Lcom/mojang/brigadier/CommandDispatcher;Ldl;)Vintermediary method_13271Lnet/minecraft/class_3050;method_13271(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)Vnamed registerLnet/minecraft/server/command/ExecuteCommand;register(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/command/CommandRegistryAccess;)V
-
addStoreArguments
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> addStoreArguments(com.mojang.brigadier.tree.LiteralCommandNode<ServerCommandSource> node, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> builder, boolean requestResult) - Mappings:
Namespace Name Mixin selector official aLacc;a(Lcom/mojang/brigadier/tree/LiteralCommandNode;Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;Z)Lcom/mojang/brigadier/builder/ArgumentBuilder;intermediary method_13289Lnet/minecraft/class_3050;method_13289(Lcom/mojang/brigadier/tree/LiteralCommandNode;Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;Z)Lcom/mojang/brigadier/builder/ArgumentBuilder;named addStoreArgumentsLnet/minecraft/server/command/ExecuteCommand;addStoreArguments(Lcom/mojang/brigadier/tree/LiteralCommandNode;Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;Z)Lcom/mojang/brigadier/builder/ArgumentBuilder;
-
executeStoreScore
private static ServerCommandSource executeStoreScore(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, boolean requestResult) - Mappings:
Namespace Name Mixin selector official aLacc;a(Ldr;Ljava/util/Collection;Ldwo;Z)Ldr;intermediary method_13290Lnet/minecraft/class_3050;method_13290(Lnet/minecraft/class_2168;Ljava/util/Collection;Lnet/minecraft/class_266;Z)Lnet/minecraft/class_2168;named executeStoreScoreLnet/minecraft/server/command/ExecuteCommand;executeStoreScore(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Collection;Lnet/minecraft/scoreboard/ScoreboardObjective;Z)Lnet/minecraft/server/command/ServerCommandSource;
-
executeStoreBossbar
private static ServerCommandSource executeStoreBossbar(ServerCommandSource source, CommandBossBar bossBar, boolean storeInValue, boolean requestResult) - Mappings:
Namespace Name Mixin selector official aLacc;a(Ldr;Labd;ZZ)Ldr;intermediary method_13297Lnet/minecraft/class_3050;method_13297(Lnet/minecraft/class_2168;Lnet/minecraft/class_3002;ZZ)Lnet/minecraft/class_2168;named executeStoreBossbarLnet/minecraft/server/command/ExecuteCommand;executeStoreBossbar(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/boss/CommandBossBar;ZZ)Lnet/minecraft/server/command/ServerCommandSource;
-
executeStoreData
private static ServerCommandSource executeStoreData(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, IntFunction<NbtElement> nbtSetter, boolean requestResult) - Mappings:
Namespace Name Mixin selector official aLacc;a(Ldr;Laei;Leh$g;Ljava/util/function/IntFunction;Z)Ldr;intermediary method_13265Lnet/minecraft/class_3050;method_13265(Lnet/minecraft/class_2168;Lnet/minecraft/class_3162;Lnet/minecraft/class_2203$class_2209;Ljava/util/function/IntFunction;Z)Lnet/minecraft/class_2168;named executeStoreDataLnet/minecraft/server/command/ExecuteCommand;executeStoreData(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/DataCommandObject;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Ljava/util/function/IntFunction;Z)Lnet/minecraft/server/command/ServerCommandSource;
-
addConditionArguments
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> addConditionArguments(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> argumentBuilder, boolean positive, CommandRegistryAccess commandRegistryAccess) - Mappings:
Namespace Name Mixin selector official aLacc;a(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;ZLdl;)Lcom/mojang/brigadier/builder/ArgumentBuilder;intermediary method_13298Lnet/minecraft/class_3050;method_13298(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;ZLnet/minecraft/class_7157;)Lcom/mojang/brigadier/builder/ArgumentBuilder;named addConditionArgumentsLnet/minecraft/server/command/ExecuteCommand;addConditionArguments(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;ZLnet/minecraft/command/CommandRegistryAccess;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
-
getExistsConditionExecute
private static com.mojang.brigadier.Command<ServerCommandSource> getExistsConditionExecute(boolean positive, ExecuteCommand.ExistsCondition condition) - Mappings:
Namespace Name Mixin selector official aLacc;a(ZLacc$a;)Lcom/mojang/brigadier/Command;intermediary method_13323Lnet/minecraft/class_3050;method_13323(ZLnet/minecraft/class_3050$class_3051;)Lcom/mojang/brigadier/Command;named getExistsConditionExecuteLnet/minecraft/server/command/ExecuteCommand;getExistsConditionExecute(ZLnet/minecraft/server/command/ExecuteCommand$ExistsCondition;)Lcom/mojang/brigadier/Command;
-
countPathMatches
private static int countPathMatches(DataCommandObject object, NbtPathArgumentType.NbtPath path) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLacc;a(Laei;Leh$g;)Iintermediary method_13303Lnet/minecraft/class_3050;method_13303(Lnet/minecraft/class_3162;Lnet/minecraft/class_2203$class_2209;)Inamed countPathMatchesLnet/minecraft/server/command/ExecuteCommand;countPathMatches(Lnet/minecraft/command/DataCommandObject;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;)I
-
testScoreCondition
private static boolean testScoreCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BiPredicate<Integer, Integer> condition) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLacc;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/function/BiPredicate;)Zintermediary method_13263Lnet/minecraft/class_3050;method_13263(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/function/BiPredicate;)Znamed testScoreConditionLnet/minecraft/server/command/ExecuteCommand;testScoreCondition(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/function/BiPredicate;)Z
-
testScoreMatch
private static boolean testScoreMatch(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, NumberRange.IntRange range) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLacc;a(Lcom/mojang/brigadier/context/CommandContext;Lcj$d;)Zintermediary method_13313Lnet/minecraft/class_3050;method_13313(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_2096$class_2100;)Znamed testScoreMatchLnet/minecraft/server/command/ExecuteCommand;testScoreMatch(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/predicate/NumberRange$IntRange;)Z
-
testLootCondition
- Mappings:
Namespace Name Mixin selector official aLacc;a(Ldr;Ldua;)Zintermediary method_22829Lnet/minecraft/class_3050;method_22829(Lnet/minecraft/class_2168;Lnet/minecraft/class_5341;)Znamed testLootConditionLnet/minecraft/server/command/ExecuteCommand;testLootCondition(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/loot/condition/LootCondition;)Z
-
getSourceOrEmptyForConditionFork
private static Collection<ServerCommandSource> getSourceOrEmptyForConditionFork(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean positive, boolean value) - Mappings:
Namespace Name Mixin selector official aLacc;a(Lcom/mojang/brigadier/context/CommandContext;ZZ)Ljava/util/Collection;intermediary method_13319Lnet/minecraft/class_3050;method_13319(Lcom/mojang/brigadier/context/CommandContext;ZZ)Ljava/util/Collection;named getSourceOrEmptyForConditionForkLnet/minecraft/server/command/ExecuteCommand;getSourceOrEmptyForConditionFork(Lcom/mojang/brigadier/context/CommandContext;ZZ)Ljava/util/Collection;
-
addConditionLogic
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> addConditionLogic(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, boolean positive, ExecuteCommand.Condition condition) - Mappings:
Namespace Name Mixin selector official aLacc;a(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/ArgumentBuilder;ZLacc$b;)Lcom/mojang/brigadier/builder/ArgumentBuilder;intermediary method_13310Lnet/minecraft/class_3050;method_13310(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/ArgumentBuilder;ZLnet/minecraft/class_3050$class_3052;)Lcom/mojang/brigadier/builder/ArgumentBuilder;named addConditionLogicLnet/minecraft/server/command/ExecuteCommand;addConditionLogic(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/ArgumentBuilder;ZLnet/minecraft/server/command/ExecuteCommand$Condition;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
-
addBlocksConditionLogic
private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,?> addBlocksConditionLogic(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, boolean positive, boolean masked) - Mappings:
Namespace Name Mixin selector official aLacc;a(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/ArgumentBuilder;ZZ)Lcom/mojang/brigadier/builder/ArgumentBuilder;intermediary method_13320Lnet/minecraft/class_3050;method_13320(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/ArgumentBuilder;ZZ)Lcom/mojang/brigadier/builder/ArgumentBuilder;named addBlocksConditionLogicLnet/minecraft/server/command/ExecuteCommand;addBlocksConditionLogic(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/ArgumentBuilder;ZZ)Lcom/mojang/brigadier/builder/ArgumentBuilder;
-
executePositiveBlockCondition
private static int executePositiveBlockCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLacc;a(Lcom/mojang/brigadier/context/CommandContext;Z)Iintermediary method_13306Lnet/minecraft/class_3050;method_13306(Lcom/mojang/brigadier/context/CommandContext;Z)Inamed executePositiveBlockConditionLnet/minecraft/server/command/ExecuteCommand;executePositiveBlockCondition(Lcom/mojang/brigadier/context/CommandContext;Z)I
-
executeNegativeBlockCondition
private static int executeNegativeBlockCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official bLacc;b(Lcom/mojang/brigadier/context/CommandContext;Z)Iintermediary method_13304Lnet/minecraft/class_3050;method_13304(Lcom/mojang/brigadier/context/CommandContext;Z)Inamed executeNegativeBlockConditionLnet/minecraft/server/command/ExecuteCommand;executeNegativeBlockCondition(Lcom/mojang/brigadier/context/CommandContext;Z)I
-
testBlocksCondition
private static OptionalInt testBlocksCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official cLacc;c(Lcom/mojang/brigadier/context/CommandContext;Z)Ljava/util/OptionalInt;intermediary method_13272Lnet/minecraft/class_3050;method_13272(Lcom/mojang/brigadier/context/CommandContext;Z)Ljava/util/OptionalInt;named testBlocksConditionLnet/minecraft/server/command/ExecuteCommand;testBlocksCondition(Lcom/mojang/brigadier/context/CommandContext;Z)Ljava/util/OptionalInt;
-
testBlocksCondition
private static OptionalInt testBlocksCondition(ServerWorld world, BlockPos start, BlockPos end, BlockPos destination, boolean masked) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLacc;a(Lafo;Lgt;Lgt;Lgt;Z)Ljava/util/OptionalInt;intermediary method_13261Lnet/minecraft/class_3050;method_13261(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Z)Ljava/util/OptionalInt;named testBlocksConditionLnet/minecraft/server/command/ExecuteCommand;testBlocksCondition(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Z)Ljava/util/OptionalInt;
-