Class FunctionCommand

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

public class FunctionCommand extends Object
Mappings:
Namespace Name
official air
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 Lair;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 Lair;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 Lair;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 Lair;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 Lair;e:Lair$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 Lair;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 Lair;a(Lel$g;Laky;)Lsd;
      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 Lair;a(Ldu;)Ldu;
      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 t, T functionSource, ExecutionControl<T> control, FunctionCommand.ResultConsumer<T> resultConsumer, class_8936 class_8936) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lair;a(Ljava/util/Collection;Lsd;Ldw;Ldw;Lgp;Lair$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/class_8936;)V
    • method_54860

      private static <T extends AbstractServerCommandSource<T>> void method_54860(@Nullable @Nullable NbtCompound nbtCompound, ExecutionControl<T> executionControl, com.mojang.brigadier.CommandDispatcher<T> commandDispatcher, T t, CommandFunction<T> commandFunction, Identifier identifier, class_8935 class_8935, boolean bool) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lair;a(Lsd;Lgp;Lcom/mojang/brigadier/CommandDispatcher;Ldw;Lhb;Lagm;Ldq;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 method_54860 Lnet/minecraft/server/command/FunctionCommand;method_54860(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/class_8935;Z)V
    • method_54858

      private static <T extends AbstractServerCommandSource<T>> class_8935 method_54858(T t, FunctionCommand.ResultConsumer<T> resultConsumer, Identifier identifier, class_8935 class_8935)
      Mappings:
      Namespace Name Mixin selector
      official a Lair;a(Ldw;Lair$b;Lagm;Ldq;)Ldq;
      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 method_54858 Lnet/minecraft/server/command/FunctionCommand;method_54858(Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/server/command/FunctionCommand$ResultConsumer;Lnet/minecraft/util/Identifier;Lnet/minecraft/class_8935;)Lnet/minecraft/class_8935;
    • method_54859

      private static <T extends AbstractServerCommandSource<T>> void method_54859(Collection<CommandFunction<T>> collection, @Nullable @Nullable NbtCompound nbtCompound, T t, T t2, ExecutionControl<T> executionControl, FunctionCommand.ResultConsumer<T> resultConsumer) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lair;a(Ljava/util/Collection;Lsd;Ldw;Ldw;Lgp;Lair$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 method_54859 Lnet/minecraft/server/command/FunctionCommand;method_54859(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
    • method_54861

      private static <T extends AbstractServerCommandSource<T>> void method_54861(Collection<CommandFunction<T>> collection, @Nullable @Nullable NbtCompound nbtCompound, T t, T t2, ExecutionControl<T> executionControl, FunctionCommand.ResultConsumer<T> resultConsumer) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official b Lair;b(Ljava/util/Collection;Lsd;Ldw;Ldw;Lgp;Lair$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 method_54861 Lnet/minecraft/server/command/FunctionCommand;method_54861(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