Package net.minecraft.command.argument
Class UuidArgumentType
java.lang.Object
net.minecraft.command.argument.UuidArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<UUID>
public class UuidArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<UUID>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>
EXAMPLES
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
INVALID_UUID
private static Pattern
VALID_CHARACTERS
-
Constructor Summary
Constructors Constructor Description UuidArgumentType()
-
Method Summary
Modifier and Type Method Description Collection<String>
getExamples()
static UUID
getUuid(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
UUID
parse(com.mojang.brigadier.StringReader stringReader)
static UuidArgumentType
uuid()
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
-
Field Details
-
INVALID_UUID
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_UUID -
EXAMPLES
-
VALID_CHARACTERS
-
-
Constructor Details
-
UuidArgumentType
public UuidArgumentType()
-
-
Method Details
-
getUuid
public static UUID getUuid(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
uuid
-
parse
public UUID parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<UUID>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<UUID>
-