Class ExecuteCommand

java.lang.Object
net.minecraft.server.command.ExecuteCommand

public class ExecuteCommand extends Object
Mappings:
Namespace Name
official acc
intermediary net/minecraft/class_3050
named net/minecraft/server/command/ExecuteCommand
  • Field Details

    • MAX_BLOCKS

      private static final int MAX_BLOCKS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lacc;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 Lacc;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 Lacc;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 Lacc;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 Lacc;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 Lacc;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

      public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess)
      Mappings:
      Namespace Name Mixin selector
      official a Lacc;a(Lcom/mojang/brigadier/CommandDispatcher;Ldl;)V
      intermediary method_13271 Lnet/minecraft/class_3050;method_13271(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)V
      named register Lnet/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 a Lacc;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 Lacc;a(Ldr;Ljava/util/Collection;Ldwo;Z)Ldr;
      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 Lacc;a(Ldr;Labd;ZZ)Ldr;
      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 Lacc;a(Ldr;Laei;Leh$g;Ljava/util/function/IntFunction;Z)Ldr;
      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, CommandRegistryAccess commandRegistryAccess)
      Mappings:
      Namespace Name Mixin selector
      official a Lacc;a(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;ZLdl;)Lcom/mojang/brigadier/builder/ArgumentBuilder;
      intermediary method_13298 Lnet/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 addConditionArguments Lnet/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 a Lacc;a(ZLacc$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 Lacc;a(Laei;Leh$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 Lacc;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 Lacc;a(Lcom/mojang/brigadier/context/CommandContext;Lcj$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

      private static boolean testLootCondition(ServerCommandSource source, LootCondition condition)
      Mappings:
      Namespace Name Mixin selector
      official a Lacc;a(Ldr;Ldua;)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 Lacc;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 Lacc;a(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/builder/ArgumentBuilder;ZLacc$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 Lacc;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 Lacc;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 Lacc;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 Lacc;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 Lacc;a(Lafo;Lgt;Lgt;Lgt;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;