Class FunctionArgument
java.lang.Object
net.minecraft.commands.arguments.item.FunctionArgument
- All Implemented Interfaces:
 com.mojang.brigadier.arguments.ArgumentType<FunctionArgument.Result>
public class FunctionArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<FunctionArgument.Result>
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final Collection<String> - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionArgument(package private) static CommandFunctiongetFunction(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120929_, ResourceLocation p_120930_) static com.mojang.datafixers.util.Pair<ResourceLocation,com.mojang.datafixers.util.Either<CommandFunction, Collection<CommandFunction>>> getFunctionOrTag(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120921_, String p_120922_) static Collection<CommandFunction>getFunctions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120911_, String p_120912_) (package private) static Collection<CommandFunction>getFunctionTag(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_235274_, ResourceLocation p_235275_) parse(com.mojang.brigadier.StringReader p_120909_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions 
- 
Field Details
- 
EXAMPLES
 - 
ERROR_UNKNOWN_TAG
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_TAG - 
ERROR_UNKNOWN_FUNCTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_FUNCTION 
 - 
 - 
Constructor Details
- 
FunctionArgument
public FunctionArgument() 
 - 
 - 
Method Details
- 
functions
 - 
parse
public FunctionArgument.Result parse(com.mojang.brigadier.StringReader p_120909_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
 parsein interfacecom.mojang.brigadier.arguments.ArgumentType<FunctionArgument.Result>- Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getFunction
static CommandFunction getFunction(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120929_, ResourceLocation p_120930_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getFunctionTag
static Collection<CommandFunction> getFunctionTag(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_235274_, ResourceLocation p_235275_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getFunctions
public static Collection<CommandFunction> getFunctions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120911_, String p_120912_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getFunctionOrTag
public static com.mojang.datafixers.util.Pair<ResourceLocation,com.mojang.datafixers.util.Either<CommandFunction, getFunctionOrTagCollection<CommandFunction>>> (com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120921_, String p_120922_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getExamples
- Specified by:
 getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<FunctionArgument.Result>
 
 -