public class FunctionArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<FunctionArgumentType.FunctionArgument>
Modifier and Type | Class and Description |
---|---|
static interface |
FunctionArgumentType.FunctionArgument |
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_FUNCTION_EXCEPTION |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_FUNCTION_TAG_EXCEPTION |
Constructor and Description |
---|
FunctionArgumentType() |
Modifier and Type | Method and Description |
---|---|
static FunctionArgumentType |
function() |
Collection<String> |
getExamples() |
private static CommandFunction |
getFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
Identifier id) |
static com.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction,Tag<CommandFunction>>> |
getFunctionOrTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext,
String string) |
static Collection<CommandFunction> |
getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
private static Tag<CommandFunction> |
getFunctionTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
Identifier id) |
FunctionArgumentType.FunctionArgument |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_FUNCTION_TAG_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_FUNCTION_EXCEPTION
public static FunctionArgumentType function()
public FunctionArgumentType.FunctionArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<FunctionArgumentType.FunctionArgument>
com.mojang.brigadier.exceptions.CommandSyntaxException
private static CommandFunction getFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id)
private static Tag<CommandFunction> getFunctionTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id)
public static Collection<CommandFunction> getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static com.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction,Tag<CommandFunction>>> getFunctionOrTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<FunctionArgumentType.FunctionArgument>