Package net.minecraft.command.argument
Class CommandFunctionArgumentType
java.lang.Object
net.minecraft.command.argument.CommandFunctionArgumentType
- All Implemented Interfaces:
- com.mojang.brigadier.arguments.ArgumentType<CommandFunctionArgumentType.FunctionArgument>
public class CommandFunctionArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<CommandFunctionArgumentType.FunctionArgument>
- Mappings:
- Namespace - Name - official - fs- intermediary - net/minecraft/class_2284- named - net/minecraft/command/argument/CommandFunctionArgumentType
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Collection<String>private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic CommandFunctionArgumentType(package private) static CommandFunctiongetFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) static com.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction, Collection<CommandFunction>>> getFunctionOrTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Collection<CommandFunction>getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) (package private) static Collection<CommandFunction>getFunctionTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) parse(com.mojang.brigadier.StringReader stringReader) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentTypelistSuggestions
- 
Field Details- 
EXAMPLES- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfs;a:Ljava/util/Collection;- intermediary - field_10783- Lnet/minecraft/class_2284;field_10783:Ljava/util/Collection;- named - EXAMPLES- Lnet/minecraft/command/argument/CommandFunctionArgumentType;EXAMPLES:Ljava/util/Collection;
 
- 
UNKNOWN_FUNCTION_TAG_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_FUNCTION_TAG_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - official - b- Lfs;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_10782- Lnet/minecraft/class_2284;field_10782:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- named - UNKNOWN_FUNCTION_TAG_EXCEPTION- Lnet/minecraft/command/argument/CommandFunctionArgumentType;UNKNOWN_FUNCTION_TAG_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
UNKNOWN_FUNCTION_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_FUNCTION_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - official - c- Lfs;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_10784- Lnet/minecraft/class_2284;field_10784:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- named - UNKNOWN_FUNCTION_EXCEPTION- Lnet/minecraft/command/argument/CommandFunctionArgumentType;UNKNOWN_FUNCTION_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
 
- 
- 
Constructor Details- 
CommandFunctionArgumentTypepublic CommandFunctionArgumentType()
 
- 
- 
Method Details- 
commandFunction- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfs;a()Lfs;- intermediary - method_9760- Lnet/minecraft/class_2284;method_9760()Lnet/minecraft/class_2284;- named - commandFunction- Lnet/minecraft/command/argument/CommandFunctionArgumentType;commandFunction()Lnet/minecraft/command/argument/CommandFunctionArgumentType;
 
- 
parsepublic CommandFunctionArgumentType.FunctionArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
- parsein interface- com.mojang.brigadier.arguments.ArgumentType<CommandFunctionArgumentType.FunctionArgument>
- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfs;a(Lcom/mojang/brigadier/StringReader;)Lfs$a;- intermediary - method_9764- Lnet/minecraft/class_2284;method_9764(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2284$class_2285;- named - parse- Lnet/minecraft/command/argument/CommandFunctionArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/CommandFunctionArgumentType$FunctionArgument;
 
- 
getFunctionstatic CommandFunction getFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfs;a(Lcom/mojang/brigadier/context/CommandContext;Labb;)Ldm;- intermediary - method_9761- Lnet/minecraft/class_2284;method_9761(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_2960;)Lnet/minecraft/class_2158;- named - getFunction- Lnet/minecraft/command/argument/CommandFunctionArgumentType;getFunction(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/util/Identifier;)Lnet/minecraft/server/function/CommandFunction;
 
- 
getFunctionTagstatic Collection<CommandFunction> getFunctionTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lfs;b(Lcom/mojang/brigadier/context/CommandContext;Labb;)Ljava/util/Collection;- intermediary - method_9767- Lnet/minecraft/class_2284;method_9767(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_2960;)Ljava/util/Collection;- named - getFunctionTag- Lnet/minecraft/command/argument/CommandFunctionArgumentType;getFunctionTag(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/util/Identifier;)Ljava/util/Collection;
 
- 
getFunctionspublic static Collection<CommandFunction> getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfs;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;- intermediary - method_9769- Lnet/minecraft/class_2284;method_9769(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;- named - getFunctions- Lnet/minecraft/command/argument/CommandFunctionArgumentType;getFunctions(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
 
- 
getFunctionOrTagpublic static com.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction, getFunctionOrTagCollection<CommandFunction>>> (com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lfs;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lcom/mojang/datafixers/util/Pair;- intermediary - method_9768- Lnet/minecraft/class_2284;method_9768(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lcom/mojang/datafixers/util/Pair;- named - getFunctionOrTag- Lnet/minecraft/command/argument/CommandFunctionArgumentType;getFunctionOrTag(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lcom/mojang/datafixers/util/Pair;
 
- 
getExamples- Specified by:
- getExamplesin interface- com.mojang.brigadier.arguments.ArgumentType<CommandFunctionArgumentType.FunctionArgument>
 
 
-