Class ExecuteCommand

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

public class ExecuteCommand extends Object
  • Field Details

    • 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<CommandSource>> CALLBACK_CHAINER
    • SUGGEST_PREDICATE

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

    • ExecuteCommand

      public ExecuteCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198378_0_)
    • wrapStores

      private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> wrapStores(com.mojang.brigadier.tree.LiteralCommandNode<CommandSource> p_198392_0_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> p_198392_1_, boolean p_198392_2_)
    • storeValue

      private static CommandSource storeValue(CommandSource p_209930_0_, Collection<String> p_209930_1_, ScoreObjective p_209930_2_, boolean p_209930_3_)
    • storeValue

      private static CommandSource storeValue(CommandSource p_209952_0_, CustomServerBossInfo p_209952_1_, boolean p_209952_2_, boolean p_209952_3_)
    • storeData

      private static CommandSource storeData(CommandSource p_198397_0_, IDataAccessor p_198397_1_, NBTPathArgument.NBTPath p_198397_2_, IntFunction<INBT> p_198397_3_, boolean p_198397_4_)
    • addConditionals

      private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> addConditionals(com.mojang.brigadier.tree.CommandNode<CommandSource> p_198394_0_, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> p_198394_1_, boolean p_198394_2_)
    • createNumericConditionalHandler

      private static com.mojang.brigadier.Command<CommandSource> createNumericConditionalHandler(boolean p_218834_0_, ExecuteCommand.INumericTest p_218834_1_)
    • checkMatchingData

      private static int checkMatchingData(IDataAccessor p_218831_0_, NBTPathArgument.NBTPath p_218831_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkScore

      private static boolean checkScore(com.mojang.brigadier.context.CommandContext<CommandSource> p_198371_0_, BiPredicate<Integer,Integer> p_198371_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkScore

      private static boolean checkScore(com.mojang.brigadier.context.CommandContext<CommandSource> p_201115_0_, MinMaxBounds.IntBound p_201115_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkCustomPredicate

      private static boolean checkCustomPredicate(CommandSource p_229767_0_, ILootCondition p_229767_1_)
    • expect

      private static Collection<CommandSource> expect(com.mojang.brigadier.context.CommandContext<CommandSource> p_198411_0_, boolean p_198411_1_, boolean p_198411_2_)
    • addConditional

      private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> addConditional(com.mojang.brigadier.tree.CommandNode<CommandSource> p_210415_0_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> p_210415_1_, boolean p_210415_2_, ExecuteCommand.IBooleanTest p_210415_3_)
    • addIfBlocksConditional

      private static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> addIfBlocksConditional(com.mojang.brigadier.tree.CommandNode<CommandSource> p_212178_0_, com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,?> p_212178_1_, boolean p_212178_2_, boolean p_212178_3_)
    • checkIfRegions

      private static int checkIfRegions(com.mojang.brigadier.context.CommandContext<CommandSource> p_212175_0_, boolean p_212175_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkUnlessRegions

      private static int checkUnlessRegions(com.mojang.brigadier.context.CommandContext<CommandSource> p_212173_0_, boolean p_212173_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkRegions

      private static OptionalInt checkRegions(com.mojang.brigadier.context.CommandContext<CommandSource> p_212169_0_, boolean p_212169_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • checkRegions

      private static OptionalInt checkRegions(ServerWorld p_198395_0_, BlockPos p_198395_1_, BlockPos p_198395_2_, BlockPos p_198395_3_, boolean p_198395_4_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException