public class FunctionArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<FunctionArgument.IResult>
| Modifier and Type | Class and Description |
|---|---|
static interface |
FunctionArgument.IResult |
| Constructor and Description |
|---|
FunctionArgument() |
| Modifier and Type | Method and Description |
|---|---|
static FunctionArgument |
function() |
java.util.Collection<java.lang.String> |
getExamples() |
static java.util.Collection<FunctionObject> |
getFunctions(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
FunctionArgument.IResult |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
public static FunctionArgument function()
public FunctionArgument.IResult parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse in interface com.mojang.brigadier.arguments.ArgumentType<FunctionArgument.IResult>com.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic static java.util.Collection<FunctionObject> getFunctions(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic java.util.Collection<java.lang.String> getExamples()
getExamples in interface com.mojang.brigadier.arguments.ArgumentType<FunctionArgument.IResult>