Class ExecuteCommand


  • public class ExecuteCommand
    extends java.lang.Object
    • Field Detail

      • 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 java.util.function.BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSource>> CALLBACK_CHAINER
      • SUGGEST_PREDICATE

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

      • ExecuteCommand

        public ExecuteCommand()
    • Method Detail

      • 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_)
      • 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_)
      • 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_,
                                          java.util.function.BiPredicate<java.lang.Integer,​java.lang.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
      • expect

        private static java.util.Collection<CommandSource> expect​(com.mojang.brigadier.context.CommandContext<CommandSource> p_198411_0_,
                                                                  boolean p_198411_1_,
                                                                  boolean p_198411_2_)
      • 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 java.util.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 java.util.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