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 fcintermediary net/minecraft/class_5242named net/minecraft/command/argument/UuidArgumentType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String>static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final Pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UUIDgetUuid(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) parse(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- Mappings:
Namespace Name Mixin selector official aLfc;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_24318Lnet/minecraft/class_5242;field_24318:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named INVALID_UUIDLnet/minecraft/command/argument/UuidArgumentType;INVALID_UUID:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official bLfc;b:Ljava/util/Collection;intermediary field_24319Lnet/minecraft/class_5242;field_24319:Ljava/util/Collection;named EXAMPLESLnet/minecraft/command/argument/UuidArgumentType;EXAMPLES:Ljava/util/Collection;
-
VALID_CHARACTERS
- Mappings:
Namespace Name Mixin selector official cLfc;c:Ljava/util/regex/Pattern;intermediary field_24320Lnet/minecraft/class_5242;field_24320:Ljava/util/regex/Pattern;named VALID_CHARACTERSLnet/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 aLfc;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/UUID;intermediary method_27645Lnet/minecraft/class_5242;method_27645(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/UUID;named getUuidLnet/minecraft/command/argument/UuidArgumentType;getUuid(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/UUID;
-
uuid
- Mappings:
Namespace Name Mixin selector official aLfc;a()Lfc;intermediary method_27643Lnet/minecraft/class_5242;method_27643()Lnet/minecraft/class_5242;named uuidLnet/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:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<UUID>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLfc;a(Lcom/mojang/brigadier/StringReader;)Ljava/util/UUID;intermediary method_27644Lnet/minecraft/class_5242;method_27644(Lcom/mojang/brigadier/StringReader;)Ljava/util/UUID;named parseLnet/minecraft/command/argument/UuidArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Ljava/util/UUID;
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<UUID>
-