Package net.minecraft.server.command
Class ExecuteCommand
java.lang.Object
net.minecraft.server.command.ExecuteCommand
- Mappings:
Namespace Name official yi
intermediary net/minecraft/class_3050
named net/minecraft/server/command/ExecuteCommand
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static interface
private static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>>
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
private static final int
-
Constructor Summary
-
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) 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 int
countPathMatches
(DataCommandObject object, NbtPathArgumentType.NbtPath path) private static int
executeNegativeBlockCondition
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked) private static int
executePositiveBlockCondition
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked) private static ServerCommandSource
executeStoreBossbar
(ServerCommandSource source, CommandBossBar bossBar, boolean storeInValue, boolean requestResult) private static ServerCommandSource
executeStoreData
(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, IntFunction<NbtElement> nbtSetter, boolean requestResult) private static ServerCommandSource
executeStoreScore
(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 void
register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) private static OptionalInt
testBlocksCondition
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked) private static OptionalInt
testBlocksCondition
(ServerWorld world, BlockPos start, BlockPos end, BlockPos destination, boolean masked) private static boolean
testLootCondition
(ServerCommandSource source, LootCondition condition) private static boolean
testScoreCondition
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BiPredicate<Integer, Integer> condition) private static boolean
testScoreMatch
(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 a
Lyi;a:I
intermediary field_33390
Lnet/minecraft/class_3050;field_33390:I
named MAX_BLOCKS
Lnet/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 b
Lyi;b:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_13635
Lnet/minecraft/class_3050;field_13635:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
named BLOCKS_TOOBIG_EXCEPTION
Lnet/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 c
Lyi;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_13636
Lnet/minecraft/class_3050;field_13636:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named CONDITIONAL_FAIL_EXCEPTION
Lnet/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 d
Lyi;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_13637
Lnet/minecraft/class_3050;field_13637:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named CONDITIONAL_FAIL_COUNT_EXCEPTION
Lnet/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 e
Lyi;e:Ljava/util/function/BinaryOperator;
intermediary field_13634
Lnet/minecraft/class_3050;field_13634:Ljava/util/function/BinaryOperator;
named BINARY_RESULT_CONSUMER
Lnet/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 f
Lyi;f:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
intermediary field_20852
Lnet/minecraft/class_3050;field_20852:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
named LOOT_CONDITIONS
Lnet/minecraft/server/command/ExecuteCommand;LOOT_CONDITIONS:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
-
-
Constructor Details
-
ExecuteCommand
public ExecuteCommand()
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector official a
Lyi;a(Lcom/mojang/brigadier/CommandDispatcher;)V
intermediary method_13271
Lnet/minecraft/class_3050;method_13271(Lcom/mojang/brigadier/CommandDispatcher;)V
named register
Lnet/minecraft/server/command/ExecuteCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)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 a
Lyi;a(Lcom/mojang/brigadier/tree/LiteralCommandNode;Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;Z)Lcom/mojang/brigadier/builder/ArgumentBuilder;
intermediary method_13289
Lnet/minecraft/class_3050;method_13289(Lcom/mojang/brigadier/tree/LiteralCommandNode;Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;Z)Lcom/mojang/brigadier/builder/ArgumentBuilder;
named addStoreArguments
Lnet/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 a
Lyi;a(Ldl;Ljava/util/Collection;Ldnv;Z)Ldl;
intermediary method_13290
Lnet/minecraft/class_3050;method_13290(Lnet/minecraft/class_2168;Ljava/util/Collection;Lnet/minecraft/class_266;Z)Lnet/minecraft/class_2168;
named executeStoreScore
Lnet/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 a
Lyi;a(Ldl;Lxn;ZZ)Ldl;
intermediary method_13297
Lnet/minecraft/class_3050;method_13297(Lnet/minecraft/class_2168;Lnet/minecraft/class_3002;ZZ)Lnet/minecraft/class_2168;
named executeStoreBossbar
Lnet/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 a
Lyi;a(Ldl;Laal;Leb$g;Ljava/util/function/IntFunction;Z)Ldl;
intermediary method_13265
Lnet/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 executeStoreData
Lnet/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) - Mappings:
Namespace Name Mixin selector official a
Lyi;a(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;Z)Lcom/mojang/brigadier/builder/ArgumentBuilder;
intermediary method_13298
Lnet/minecraft/class_3050;method_13298(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;Z)Lcom/mojang/brigadier/builder/ArgumentBuilder;
named addConditionArguments
Lnet/minecraft/server/command/ExecuteCommand;addConditionArguments(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;Z)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 a
Lyi;a(ZLyi$a;)Lcom/mojang/brigadier/Command;
intermediary method_13323
Lnet/minecraft/class_3050;method_13323(ZLnet/minecraft/class_3050$class_3051;)Lcom/mojang/brigadier/Command;
named getExistsConditionExecute
Lnet/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 a
Lyi;a(Laal;Leb$g;)I
intermediary method_13303
Lnet/minecraft/class_3050;method_13303(Lnet/minecraft/class_3162;Lnet/minecraft/class_2203$class_2209;)I
named countPathMatches
Lnet/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 a
Lyi;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/function/BiPredicate;)Z
intermediary method_13263
Lnet/minecraft/class_3050;method_13263(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/function/BiPredicate;)Z
named testScoreCondition
Lnet/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 a
Lyi;a(Lcom/mojang/brigadier/context/CommandContext;Lch$d;)Z
intermediary method_13313
Lnet/minecraft/class_3050;method_13313(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_2096$class_2100;)Z
named testScoreMatch
Lnet/minecraft/server/command/ExecuteCommand;testScoreMatch(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/predicate/NumberRange$IntRange;)Z
-
testLootCondition
- Mappings:
Namespace Name Mixin selector official a
Lyi;a(Ldl;Ldlh;)Z
intermediary method_22829
Lnet/minecraft/class_3050;method_22829(Lnet/minecraft/class_2168;Lnet/minecraft/class_5341;)Z
named testLootCondition
Lnet/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 a
Lyi;a(Lcom/mojang/brigadier/context/CommandContext;ZZ)Ljava/util/Collection;
intermediary method_13319
Lnet/minecraft/class_3050;method_13319(Lcom/mojang/brigadier/context/CommandContext;ZZ)Ljava/util/Collection;
named getSourceOrEmptyForConditionFork
Lnet/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 a
Lyi;a(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/ArgumentBuilder;ZLyi$b;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
intermediary method_13310
Lnet/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 addConditionLogic
Lnet/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 a
Lyi;a(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/ArgumentBuilder;ZZ)Lcom/mojang/brigadier/builder/ArgumentBuilder;
intermediary method_13320
Lnet/minecraft/class_3050;method_13320(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/ArgumentBuilder;ZZ)Lcom/mojang/brigadier/builder/ArgumentBuilder;
named addBlocksConditionLogic
Lnet/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 a
Lyi;a(Lcom/mojang/brigadier/context/CommandContext;Z)I
intermediary method_13306
Lnet/minecraft/class_3050;method_13306(Lcom/mojang/brigadier/context/CommandContext;Z)I
named executePositiveBlockCondition
Lnet/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 b
Lyi;b(Lcom/mojang/brigadier/context/CommandContext;Z)I
intermediary method_13304
Lnet/minecraft/class_3050;method_13304(Lcom/mojang/brigadier/context/CommandContext;Z)I
named executeNegativeBlockCondition
Lnet/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 c
Lyi;c(Lcom/mojang/brigadier/context/CommandContext;Z)Ljava/util/OptionalInt;
intermediary method_13272
Lnet/minecraft/class_3050;method_13272(Lcom/mojang/brigadier/context/CommandContext;Z)Ljava/util/OptionalInt;
named testBlocksCondition
Lnet/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 a
Lyi;a(Labr;Lgg;Lgg;Lgg;Z)Ljava/util/OptionalInt;
intermediary method_13261
Lnet/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 testBlocksCondition
Lnet/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;
-