Package net.minecraft.commands.arguments
Class ResourceLocationArgument
java.lang.Object
net.minecraft.commands.arguments.ResourceLocationArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
public class ResourceLocationArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceLocationgetId(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) static ResourceLocationArgumentid()parse(com.mojang.brigadier.StringReader pReader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions, parse
-
Field Details
-
EXAMPLES
-
-
Constructor Details
-
ResourceLocationArgument
public ResourceLocationArgument()
-
-
Method Details
-
id
-
getId
public static ResourceLocation getId(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) -
parse
public ResourceLocation parse(com.mojang.brigadier.StringReader pReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<ResourceLocation>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-