Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
INVALID_UUID |
private static Pattern |
VALID_CHARACTERS |
Constructor and Description |
---|
UuidArgumentType() |
Modifier and Type | Method and 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() |
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_UUID
private static final Collection<String> EXAMPLES
private static final Pattern VALID_CHARACTERS
public static UUID getUuid(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static UuidArgumentType uuid()
public UUID parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<UUID>
com.mojang.brigadier.exceptions.CommandSyntaxException
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<UUID>