Class FunctionCommand

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

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

    • ARGUMENT_NOT_COMPOUND_EXCEPTION

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

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

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

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

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

    • FunctionCommand

      public FunctionCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
      Mappings:
      Namespace Name Mixin selector
      named register Lnet/minecraft/server/command/FunctionCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
      intermediary method_13380 Lnet/minecraft/class_3062;method_13380(Lcom/mojang/brigadier/CommandDispatcher;)V
      official a Laoh;a(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
      named getArgument Lnet/minecraft/server/command/FunctionCommand;getArgument(Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Lnet/minecraft/command/DataCommandObject;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_52313 Lnet/minecraft/class_3062;method_52313(Lnet/minecraft/class_2203$class_2209;Lnet/minecraft/class_3162;)Lnet/minecraft/class_2487;
      official a Laoh;a(Lfo$g;Laqr;)Lux;
    • createFunctionCommandSource

      public static ServerCommandSource createFunctionCommandSource(ServerCommandSource source)
      Mappings:
      Namespace Name Mixin selector
      named createFunctionCommandSource Lnet/minecraft/server/command/FunctionCommand;createFunctionCommandSource(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_54272 Lnet/minecraft/class_3062;method_54272(Lnet/minecraft/class_2168;)Lnet/minecraft/class_2168;
      official a Laoh;a(Lew;)Lew;
    • 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
      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
      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
      official a Laoh;a(Ljava/util/Collection;Lux;Ley;Ley;Lhx;Laoh$b;Lhr;)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
      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
      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
      official a Laoh;a(Lux;Lhx;Lcom/mojang/brigadier/CommandDispatcher;Ley;Lik;Lalz;Let;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
      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;
      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;
      official a Laoh;a(Ley;Laoh$b;Lalz;Let;)Let;
    • 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
      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
      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
      official a Laoh;a(Ljava/util/Collection;Lux;Ley;Ley;Lhx;Laoh$b;)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
      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
      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
      official b Laoh;b(Ljava/util/Collection;Lux;Ley;Ley;Lhx;Laoh$b;)V