Package net.minecraft.server.command
Class FunctionCommand
java.lang.Object
net.minecraft.server.command.FunctionCommand
- Mappings:
Namespace Name official agtintermediary net/minecraft/class_3062named net/minecraft/server/command/FunctionCommand
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypestatic final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intexecute(ServerCommandSource source, Collection<CommandFunction> functions, @Nullable NbtCompound arguments) execute(ServerCommandSource source, CommandFunction function, @Nullable NbtCompound arguments) private static NbtCompoundgetArgument(NbtPathArgumentType.NbtPath path, DataCommandObject object) static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
ARGUMENT_NOT_COMPOUND_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ARGUMENT_NOT_COMPOUND_EXCEPTION- Mappings:
Namespace Name Mixin selector official bLagt;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_44982Lnet/minecraft/class_3062;field_44982:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named ARGUMENT_NOT_COMPOUND_EXCEPTIONLnet/minecraft/server/command/FunctionCommand;ARGUMENT_NOT_COMPOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
SUGGESTION_PROVIDER
public static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> SUGGESTION_PROVIDER- Mappings:
Namespace Name Mixin selector official aLagt;a:Lcom/mojang/brigadier/suggestion/SuggestionProvider;intermediary field_13662Lnet/minecraft/class_3062;field_13662:Lcom/mojang/brigadier/suggestion/SuggestionProvider;named SUGGESTION_PROVIDERLnet/minecraft/server/command/FunctionCommand;SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
-
-
Constructor Details
-
FunctionCommand
public FunctionCommand()
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector official aLagt;a(Lcom/mojang/brigadier/CommandDispatcher;)Vintermediary method_13380Lnet/minecraft/class_3062;method_13380(Lcom/mojang/brigadier/CommandDispatcher;)Vnamed registerLnet/minecraft/server/command/FunctionCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
getArgument
private 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 aLagt;a(Lei$g;Laiz;)Lqs;intermediary method_52313Lnet/minecraft/class_3062;method_52313(Lnet/minecraft/class_2203$class_2209;Lnet/minecraft/class_3162;)Lnet/minecraft/class_2487;named getArgumentLnet/minecraft/server/command/FunctionCommand;getArgument(Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Lnet/minecraft/command/DataCommandObject;)Lnet/minecraft/nbt/NbtCompound;
-
execute
private static int execute(ServerCommandSource source, Collection<CommandFunction> functions, @Nullable @Nullable NbtCompound arguments) - Mappings:
Namespace Name Mixin selector official aLagt;a(Lds;Ljava/util/Collection;Lqs;)Iintermediary method_13381Lnet/minecraft/class_3062;method_13381(Lnet/minecraft/class_2168;Ljava/util/Collection;Lnet/minecraft/class_2487;)Inamed executeLnet/minecraft/server/command/FunctionCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Collection;Lnet/minecraft/nbt/NbtCompound;)I
-
execute
public static FunctionCommand.FunctionResult execute(ServerCommandSource source, CommandFunction function, @Nullable @Nullable NbtCompound arguments) throws MacroException - Throws:
MacroException- Mappings:
Namespace Name Mixin selector official aLagt;a(Lds;Ldn;Lqs;)Lagt$a;intermediary method_52312Lnet/minecraft/class_3062;method_52312(Lnet/minecraft/class_2168;Lnet/minecraft/class_2158;Lnet/minecraft/class_2487;)Lnet/minecraft/class_3062$class_8601;named executeLnet/minecraft/server/command/FunctionCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/server/function/CommandFunction;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/server/command/FunctionCommand$FunctionResult;
-