类 ResourceLocationArgument
java.lang.Object
net.minecraft.commands.arguments.ResourceLocationArgument
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
public class ResourceLocationArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ResourceLocation
getId
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_107012_, String p_107013_) static ResourceLocationArgument
id()
parse
(com.mojang.brigadier.StringReader p_106986_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 com.mojang.brigadier.arguments.ArgumentType
listSuggestions, parse
-
字段详细资料
-
EXAMPLES
-
-
构造器详细资料
-
ResourceLocationArgument
public ResourceLocationArgument()
-
-
方法详细资料
-
id
-
getId
public static ResourceLocation getId(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_107012_, String p_107013_) -
parse
public ResourceLocation parse(com.mojang.brigadier.StringReader p_106986_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 指定者:
parse
在接口中com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- 指定者:
getExamples
在接口中com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-