Class ExecuteCommand

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

public class ExecuteCommand extends Object
  • Field Details

    • MAX_TEST_AREA

      private static final int MAX_TEST_AREA
      See Also:
      Constant Field Values
    • ERROR_AREA_TOO_LARGE

      private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_AREA_TOO_LARGE
    • ERROR_CONDITIONAL_FAILED

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_CONDITIONAL_FAILED
    • ERROR_CONDITIONAL_FAILED_COUNT

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_CONDITIONAL_FAILED_COUNT
    • CALLBACK_CHAINER

      private static final BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSourceStack>> CALLBACK_CHAINER
    • SUGGEST_PREDICATE

      private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> SUGGEST_PREDICATE
  • Constructor Details

    • ExecuteCommand

      public ExecuteCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137043_)
    • wrapStores

      private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,​?> wrapStores(com.mojang.brigadier.tree.LiteralCommandNode<CommandSourceStack> p_137094_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> p_137095_, boolean p_137096_)
    • storeValue

      private static CommandSourceStack storeValue(CommandSourceStack p_137108_, Collection<String> p_137109_, Objective p_137110_, boolean p_137111_)
    • storeValue

      private static CommandSourceStack storeValue(CommandSourceStack p_137113_, CustomBossEvent p_137114_, boolean p_137115_, boolean p_137116_)
    • storeData

      private static CommandSourceStack storeData(CommandSourceStack p_137118_, DataAccessor p_137119_, NbtPathArgument.NbtPath p_137120_, IntFunction<Tag> p_137121_, boolean p_137122_)
    • addConditionals

      private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,​?> addConditionals(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_137085_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> p_137086_, boolean p_137087_)
    • createNumericConditionalHandler

      private static com.mojang.brigadier.Command<CommandSourceStack> createNumericConditionalHandler(boolean p_137167_, ExecuteCommand.CommandNumericPredicate p_137168_)
    • checkMatchingData

      private static int checkMatchingData(DataAccessor p_137146_, NbtPathArgument.NbtPath p_137147_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkScore

      private static boolean checkScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137065_, BiPredicate<Integer,​Integer> p_137066_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkScore

      private static boolean checkScore(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137059_, MinMaxBounds.Ints p_137060_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkCustomPredicate

      private static boolean checkCustomPredicate(CommandSourceStack p_137105_, LootItemCondition p_137106_)
    • expect

      private static Collection<CommandSourceStack> expect(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137071_, boolean p_137072_, boolean p_137073_)
    • addConditional

      private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,​?> addConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_137075_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,​?> p_137076_, boolean p_137077_, ExecuteCommand.CommandPredicate p_137078_)
    • addIfBlocksConditional

      private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,​?> addIfBlocksConditional(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_137080_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSourceStack,​?> p_137081_, boolean p_137082_, boolean p_137083_)
    • checkIfRegions

      private static int checkIfRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137068_, boolean p_137069_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkUnlessRegions

      private static int checkUnlessRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137194_, boolean p_137195_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkRegions

      private static OptionalInt checkRegions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137221_, boolean p_137222_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkRegions

      private static OptionalInt checkRegions(ServerLevel p_137037_, BlockPos p_137038_, BlockPos p_137039_, BlockPos p_137040_, boolean p_137041_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException