类 FunctionArgument
java.lang.Object
net.minecraft.commands.arguments.item.FunctionArgument
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<FunctionArgument.Result>
public class FunctionArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<FunctionArgument.Result>
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final Collection<String>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static FunctionArgument
(专用程序包) static CommandFunction
getFunction
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, ResourceLocation pId) static com.mojang.datafixers.util.Pair<ResourceLocation,
com.mojang.datafixers.util.Either<CommandFunction, Collection<CommandFunction>>> getFunctionOrTag
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) static Collection<CommandFunction>
getFunctions
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) (专用程序包) static Collection<CommandFunction>
getFunctionTag
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, ResourceLocation pId) parse
(com.mojang.brigadier.StringReader pReader) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
字段详细资料
-
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
-
-
构造器详细资料
-
FunctionArgument
public FunctionArgument()
-
-
方法详细资料
-
functions
-
parse
public FunctionArgument.Result parse(com.mojang.brigadier.StringReader pReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 指定者:
parse
在接口中com.mojang.brigadier.arguments.ArgumentType<FunctionArgument.Result>
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFunction
static CommandFunction getFunction(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, ResourceLocation pId) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFunctionTag
static Collection<CommandFunction> getFunctionTag(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, ResourceLocation pId) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFunctions
public static Collection<CommandFunction> getFunctions(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
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> pContext, String pName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- 指定者:
getExamples
在接口中com.mojang.brigadier.arguments.ArgumentType<FunctionArgument.Result>
-