- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<URI>
public class UriArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<URI>
-
Constructor Summary
Constructors
-
Method Summary
getUri(com.mojang.brigadier.context.CommandContext<?> context,
String name)
parse(com.mojang.brigadier.StringReader reader)
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
getExamples, listSuggestions
-
Constructor Details
-
UriArgumentType
public UriArgumentType()
-
Method Details
-
parse
public URI parse(com.mojang.brigadier.StringReader reader)
throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Specified by:
parse
in interface com.mojang.brigadier.arguments.ArgumentType<URI>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-
getUri
public static URI getUri(com.mojang.brigadier.context.CommandContext<?> context,
String name)