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>
- Mappings:
Namespace Name official ee
intermediary net/minecraft/class_5242
named net/minecraft/command/argument/UuidArgumentType
-
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- Mappings:
Namespace Name Mixin selector official a
Lee;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_24318
Lnet/minecraft/class_5242;field_24318:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named INVALID_UUID
Lnet/minecraft/command/argument/UuidArgumentType;INVALID_UUID:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official b
Lee;b:Ljava/util/Collection;
intermediary field_24319
Lnet/minecraft/class_5242;field_24319:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/UuidArgumentType;EXAMPLES:Ljava/util/Collection;
-
VALID_CHARACTERS
- Mappings:
Namespace Name Mixin selector official c
Lee;c:Ljava/util/regex/Pattern;
intermediary field_24320
Lnet/minecraft/class_5242;field_24320:Ljava/util/regex/Pattern;
named VALID_CHARACTERS
Lnet/minecraft/command/argument/UuidArgumentType;VALID_CHARACTERS:Ljava/util/regex/Pattern;
-
-
Constructor Details
-
UuidArgumentType
public UuidArgumentType()
-
-
Method Details
-
getUuid
public static UUID getUuid(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)- Mappings:
Namespace Name Mixin selector official a
Lee;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/UUID;
intermediary method_27645
Lnet/minecraft/class_5242;method_27645(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/UUID;
named getUuid
Lnet/minecraft/command/argument/UuidArgumentType;getUuid(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/UUID;
-
uuid
- Mappings:
Namespace Name Mixin selector official a
Lee;a()Lee;
intermediary method_27643
Lnet/minecraft/class_5242;method_27643()Lnet/minecraft/class_5242;
named uuid
Lnet/minecraft/command/argument/UuidArgumentType;uuid()Lnet/minecraft/command/argument/UuidArgumentType;
-
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
- Mappings:
Namespace Name Mixin selector official a
Lee;a(Lcom/mojang/brigadier/StringReader;)Ljava/util/UUID;
intermediary method_27644
Lnet/minecraft/class_5242;method_27644(Lcom/mojang/brigadier/StringReader;)Ljava/util/UUID;
named parse
Lnet/minecraft/command/argument/UuidArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Ljava/util/UUID;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<UUID>
- Mappings:
Namespace Name Mixin selector official getExamples
Lee;getExamples()Ljava/util/Collection;
intermediary getExamples
Lnet/minecraft/class_5242;getExamples()Ljava/util/Collection;
named getExamples
Lnet/minecraft/command/argument/UuidArgumentType;getExamples()Ljava/util/Collection;
-