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 ResourceLocation
getId
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) static ResourceLocationArgument
id()
parse
(com.mojang.brigadier.StringReader pReader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ResourceLocation>
-