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 ep
intermediary net/minecraft/class_5242
named net/minecraft/command/argument/UuidArgumentType
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection<String>
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final Pattern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UUID
getUuid
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) 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
Lep;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
Lep;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
Lep;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
Lep;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
Lep;a()Lep;
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
Lep;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>
-