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>EXAMPLESstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeINVALID_UUIDprivate static PatternVALID_CHARACTERS -
Constructor Summary
Constructors Constructor Description UuidArgumentType() -
Method Summary
Modifier and Type Method Description Collection<String>getExamples()static UUIDgetUuid(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)UUIDparse(com.mojang.brigadier.StringReader stringReader)static UuidArgumentTypeuuid()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
-
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:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<UUID>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<UUID>
-