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 er
intermediary net/minecraft/class_5242
named net/minecraft/command/argument/UuidArgumentType
  • Field Details

    • INVALID_UUID

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_UUID
      Mappings:
      Namespace Name Mixin selector
      official a Ler;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

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      official b Ler;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

      private static final Pattern VALID_CHARACTERS
      Mappings:
      Namespace Name Mixin selector
      official c Ler;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 Ler;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

      public static UuidArgumentType uuid()
      Mappings:
      Namespace Name Mixin selector
      official a Ler;a()Ler;
      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 interface com.mojang.brigadier.arguments.ArgumentType<UUID>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Ler;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

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<UUID>