类 CommandFunctionArgumentType
- java.lang.Object
-
- net.minecraft.command.argument.CommandFunctionArgumentType
-
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<CommandFunctionArgumentType.FunctionArgument>
public class CommandFunctionArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<CommandFunctionArgumentType.FunctionArgument>
- Mappings:
Namespace Name official faintermediary net/minecraft/class_2284named net/minecraft/command/argument/CommandFunctionArgumentType
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceCommandFunctionArgumentType.FunctionArgument
-
字段概要
字段 修饰符和类型 字段 说明 private static Collection<String>EXAMPLESprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeUNKNOWN_FUNCTION_EXCEPTIONprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeUNKNOWN_FUNCTION_TAG_EXCEPTION
-
构造器概要
构造器 构造器 说明 CommandFunctionArgumentType()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static CommandFunctionArgumentTypecommandFunction()Collection<String>getExamples()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,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)CommandFunctionArgumentType.FunctionArgumentparse(com.mojang.brigadier.StringReader stringReader)
-
-
-
字段详细资料
-
EXAMPLES
private static final Collection<String> EXAMPLES
- Mappings:
Namespace Name Mixin selector official aLfa;a:Ljava/util/Collection;intermediary field_10783Lnet/minecraft/class_2284;field_10783:Ljava/util/Collection;named EXAMPLESLnet/minecraft/command/argument/CommandFunctionArgumentType;EXAMPLES:Ljava/util/Collection;
-
UNKNOWN_FUNCTION_TAG_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_FUNCTION_TAG_EXCEPTION
- Mappings:
Namespace Name Mixin selector official bLfa;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_10782Lnet/minecraft/class_2284;field_10782:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named UNKNOWN_FUNCTION_TAG_EXCEPTIONLnet/minecraft/command/argument/CommandFunctionArgumentType;UNKNOWN_FUNCTION_TAG_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
UNKNOWN_FUNCTION_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_FUNCTION_EXCEPTION
- Mappings:
Namespace Name Mixin selector official cLfa;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_10784Lnet/minecraft/class_2284;field_10784:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named UNKNOWN_FUNCTION_EXCEPTIONLnet/minecraft/command/argument/CommandFunctionArgumentType;UNKNOWN_FUNCTION_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
方法详细资料
-
commandFunction
public static CommandFunctionArgumentType commandFunction()
- Mappings:
Namespace Name Mixin selector official aLfa;a()Lfa;intermediary method_9760Lnet/minecraft/class_2284;method_9760()Lnet/minecraft/class_2284;named commandFunctionLnet/minecraft/command/argument/CommandFunctionArgumentType;commandFunction()Lnet/minecraft/command/argument/CommandFunctionArgumentType;
-
parse
public CommandFunctionArgumentType.FunctionArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 指定者:
parse在接口中com.mojang.brigadier.arguments.ArgumentType<CommandFunctionArgumentType.FunctionArgument>- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLfa;a(Lcom/mojang/brigadier/StringReader;)Lfa$a;intermediary method_9764Lnet/minecraft/class_2284;method_9764(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2284$class_2285;named parseLnet/minecraft/command/argument/CommandFunctionArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/CommandFunctionArgumentType$FunctionArgument;
-
getFunction
private static CommandFunction getFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official cLfa;c(Lcom/mojang/brigadier/context/CommandContext;Lwp;)Ldd;intermediary method_9761Lnet/minecraft/class_2284;method_9761(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_2960;)Lnet/minecraft/class_2158;named getFunctionLnet/minecraft/command/argument/CommandFunctionArgumentType;getFunction(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/util/Identifier;)Lnet/minecraft/server/function/CommandFunction;
-
getFunctionTag
private static Tag<CommandFunction> getFunctionTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official dLfa;d(Lcom/mojang/brigadier/context/CommandContext;Lwp;)Lafs;intermediary method_9767Lnet/minecraft/class_2284;method_9767(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_2960;)Lnet/minecraft/class_3494;named getFunctionTagLnet/minecraft/command/argument/CommandFunctionArgumentType;getFunctionTag(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/util/Identifier;)Lnet/minecraft/tag/Tag;
-
getFunctions
public static Collection<CommandFunction> getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLfa;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;intermediary method_9769Lnet/minecraft/class_2284;method_9769(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;named getFunctionsLnet/minecraft/command/argument/CommandFunctionArgumentType;getFunctions(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
-
getFunctionOrTag
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) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official bLfa;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lcom/mojang/datafixers/util/Pair;intermediary method_9768Lnet/minecraft/class_2284;method_9768(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lcom/mojang/datafixers/util/Pair;named getFunctionOrTagLnet/minecraft/command/argument/CommandFunctionArgumentType;getFunctionOrTag(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lcom/mojang/datafixers/util/Pair;
-
getExamples
public Collection<String> getExamples()
- 指定者:
getExamples在接口中com.mojang.brigadier.arguments.ArgumentType<CommandFunctionArgumentType.FunctionArgument>- Mappings:
Namespace Name Mixin selector official getExamplesLfa;getExamples()Ljava/util/Collection;intermediary getExamplesLnet/minecraft/class_2284;getExamples()Ljava/util/Collection;named getExamplesLnet/minecraft/command/argument/CommandFunctionArgumentType;getExamples()Ljava/util/Collection;
-
-