Class FunctionCommand

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

public class FunctionCommand extends Object
Mappings:
Namespace Name
official ajl
intermediary net/minecraft/class_3062
named net/minecraft/server/command/FunctionCommand
  • Field Details

    • ARGUMENT_NOT_COMPOUND_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ARGUMENT_NOT_COMPOUND_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official c Lajl;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_44982 Lnet/minecraft/class_3062;field_44982:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named ARGUMENT_NOT_COMPOUND_EXCEPTION Lnet/minecraft/server/command/FunctionCommand;ARGUMENT_NOT_COMPOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • NO_FUNCTIONS_EXCEPTION

      static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_FUNCTIONS_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official d Lajl;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_46644 Lnet/minecraft/class_3062;field_46644:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named NO_FUNCTIONS_EXCEPTION Lnet/minecraft/server/command/FunctionCommand;NO_FUNCTIONS_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • INSTANTIATION_FAILURE_EXCEPTION

      public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType INSTANTIATION_FAILURE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official a Lajl;a:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
      intermediary field_46645 Lnet/minecraft/class_3062;field_46645:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
      named INSTANTIATION_FAILURE_EXCEPTION Lnet/minecraft/server/command/FunctionCommand;INSTANTIATION_FAILURE_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
    • SUGGESTION_PROVIDER

      public static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> SUGGESTION_PROVIDER
      Mappings:
      Namespace Name Mixin selector
      official b Lajl;b:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      intermediary field_13662 Lnet/minecraft/class_3062;field_13662:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      named SUGGESTION_PROVIDER Lnet/minecraft/server/command/FunctionCommand;SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
    • RESULT_REPORTER

      static final FunctionCommand.ResultConsumer<ServerCommandSource> RESULT_REPORTER
      Mappings:
      Namespace Name Mixin selector
      official e Lajl;e:Lajl$b;
      intermediary field_46646 Lnet/minecraft/class_3062;field_46646:Lnet/minecraft/class_3062$class_8832;
      named RESULT_REPORTER Lnet/minecraft/server/command/FunctionCommand;RESULT_REPORTER:Lnet/minecraft/server/command/FunctionCommand$ResultConsumer;
  • Constructor Details

    • FunctionCommand

      public FunctionCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
      Mappings:
      Namespace Name Mixin selector
      official a Lajl;a(Lcom/mojang/brigadier/CommandDispatcher;)V
      intermediary method_13380 Lnet/minecraft/class_3062;method_13380(Lcom/mojang/brigadier/CommandDispatcher;)V
      named register Lnet/minecraft/server/command/FunctionCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
    • getArgument

      static NbtCompound getArgument(NbtPathArgumentType.NbtPath path, DataCommandObject object) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lajl;a(Lek$g;Lalt;)Lsn;
      intermediary method_52313 Lnet/minecraft/class_3062;method_52313(Lnet/minecraft/class_2203$class_2209;Lnet/minecraft/class_3162;)Lnet/minecraft/class_2487;
      named getArgument Lnet/minecraft/server/command/FunctionCommand;getArgument(Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Lnet/minecraft/command/DataCommandObject;)Lnet/minecraft/nbt/NbtCompound;
    • createFunctionCommandSource

      public static ServerCommandSource createFunctionCommandSource(ServerCommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official a Lajl;a(Lds;)Lds;
      intermediary method_54272 Lnet/minecraft/class_3062;method_54272(Lnet/minecraft/class_2168;)Lnet/minecraft/class_2168;
      named createFunctionCommandSource Lnet/minecraft/server/command/FunctionCommand;createFunctionCommandSource(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/server/command/ServerCommandSource;
    • enqueueAction

      public static <T extends AbstractServerCommandSource<T>> void enqueueAction(Collection<CommandFunction<T>> commandFunctions, @Nullable @Nullable NbtCompound args, T parentSource, T functionSource, ExecutionControl<T> control, FunctionCommand.ResultConsumer<T> resultConsumer, ExecutionFlags flags) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lajl;a(Ljava/util/Collection;Lsn;Ldu;Ldu;Lgp;Lajl$b;Lgj;)V
      intermediary method_54275 Lnet/minecraft/class_3062;method_54275(Ljava/util/Collection;Lnet/minecraft/class_2487;Lnet/minecraft/class_8839;Lnet/minecraft/class_8839;Lnet/minecraft/class_8855;Lnet/minecraft/class_3062$class_8832;Lnet/minecraft/class_8936;)V
      named enqueueAction Lnet/minecraft/server/command/FunctionCommand;enqueueAction(Ljava/util/Collection;Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/command/ExecutionControl;Lnet/minecraft/server/command/FunctionCommand$ResultConsumer;Lnet/minecraft/command/ExecutionFlags;)V
    • enqueueFunction

      private static <T extends AbstractServerCommandSource<T>> void enqueueFunction(@Nullable @Nullable NbtCompound args, ExecutionControl<T> control, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T source, CommandFunction<T> function, Identifier id, ReturnValueConsumer returnValueConsumer, boolean propagateReturn) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lajl;a(Lsn;Lgp;Lcom/mojang/brigadier/CommandDispatcher;Ldu;Lhb;Lahg;Ldp;Z)V
      intermediary method_54860 Lnet/minecraft/class_3062;method_54860(Lnet/minecraft/class_2487;Lnet/minecraft/class_8855;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_8839;Lnet/minecraft/class_2158;Lnet/minecraft/class_2960;Lnet/minecraft/class_8935;Z)V
      named enqueueFunction Lnet/minecraft/server/command/FunctionCommand;enqueueFunction(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/command/ExecutionControl;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/server/function/CommandFunction;Lnet/minecraft/util/Identifier;Lnet/minecraft/command/ReturnValueConsumer;Z)V
    • wrapReturnValueConsumer

      private static <T extends AbstractServerCommandSource<T>> ReturnValueConsumer wrapReturnValueConsumer(T flags, FunctionCommand.ResultConsumer<T> resultConsumer, Identifier id, ReturnValueConsumer wrapped)
      Mappings:
      Namespace Name Mixin selector
      official a Lajl;a(Ldu;Lajl$b;Lahg;Ldp;)Ldp;
      intermediary method_54858 Lnet/minecraft/class_3062;method_54858(Lnet/minecraft/class_8839;Lnet/minecraft/class_3062$class_8832;Lnet/minecraft/class_2960;Lnet/minecraft/class_8935;)Lnet/minecraft/class_8935;
      named wrapReturnValueConsumer Lnet/minecraft/server/command/FunctionCommand;wrapReturnValueConsumer(Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/server/command/FunctionCommand$ResultConsumer;Lnet/minecraft/util/Identifier;Lnet/minecraft/command/ReturnValueConsumer;)Lnet/minecraft/command/ReturnValueConsumer;
    • enqueueInReturnRun

      private static <T extends AbstractServerCommandSource<T>> void enqueueInReturnRun(Collection<CommandFunction<T>> functions, @Nullable @Nullable NbtCompound args, T parentSource, T functionSource, ExecutionControl<T> control, FunctionCommand.ResultConsumer<T> resultConsumer) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lajl;a(Ljava/util/Collection;Lsn;Ldu;Ldu;Lgp;Lajl$b;)V
      intermediary method_54859 Lnet/minecraft/class_3062;method_54859(Ljava/util/Collection;Lnet/minecraft/class_2487;Lnet/minecraft/class_8839;Lnet/minecraft/class_8839;Lnet/minecraft/class_8855;Lnet/minecraft/class_3062$class_8832;)V
      named enqueueInReturnRun Lnet/minecraft/server/command/FunctionCommand;enqueueInReturnRun(Ljava/util/Collection;Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/command/ExecutionControl;Lnet/minecraft/server/command/FunctionCommand$ResultConsumer;)V
    • enqueueOutsideReturnRun

      private static <T extends AbstractServerCommandSource<T>> void enqueueOutsideReturnRun(Collection<CommandFunction<T>> functions, @Nullable @Nullable NbtCompound args, T parentSource, T functionSource, ExecutionControl<T> control, FunctionCommand.ResultConsumer<T> resultConsumer) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official b Lajl;b(Ljava/util/Collection;Lsn;Ldu;Ldu;Lgp;Lajl$b;)V
      intermediary method_54861 Lnet/minecraft/class_3062;method_54861(Ljava/util/Collection;Lnet/minecraft/class_2487;Lnet/minecraft/class_8839;Lnet/minecraft/class_8839;Lnet/minecraft/class_8855;Lnet/minecraft/class_3062$class_8832;)V
      named enqueueOutsideReturnRun Lnet/minecraft/server/command/FunctionCommand;enqueueOutsideReturnRun(Ljava/util/Collection;Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/command/ExecutionControl;Lnet/minecraft/server/command/FunctionCommand$ResultConsumer;)V