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

    • INVALID_UUID

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_UUID
      Mappings:
      Namespace Name Mixin selector
      named INVALID_UUID Lnet/minecraft/command/argument/UuidArgumentType;INVALID_UUID:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_24318 Lnet/minecraft/class_5242;field_24318:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      official a Lgf;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      named EXAMPLES Lnet/minecraft/command/argument/UuidArgumentType;EXAMPLES:Ljava/util/Collection;
      intermediary field_24319 Lnet/minecraft/class_5242;field_24319:Ljava/util/Collection;
      official b Lgf;b:Ljava/util/Collection;
    • VALID_CHARACTERS

      private static final Pattern VALID_CHARACTERS
      Mappings:
      Namespace Name Mixin selector
      named VALID_CHARACTERS Lnet/minecraft/command/argument/UuidArgumentType;VALID_CHARACTERS:Ljava/util/regex/Pattern;
      intermediary field_24320 Lnet/minecraft/class_5242;field_24320:Ljava/util/regex/Pattern;
      official c Lgf;c: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
      named getUuid Lnet/minecraft/command/argument/UuidArgumentType;getUuid(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;
      official a Lgf;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/UUID;
    • uuid

      public static UuidArgumentType uuid()
      Mappings:
      Namespace Name Mixin selector
      named uuid Lnet/minecraft/command/argument/UuidArgumentType;uuid()Lnet/minecraft/command/argument/UuidArgumentType;
      intermediary method_27643 Lnet/minecraft/class_5242;method_27643()Lnet/minecraft/class_5242;
      official a Lgf;a()Lgf;
    • 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
      named parse Lnet/minecraft/command/argument/UuidArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Ljava/util/UUID;
      intermediary method_27644 Lnet/minecraft/class_5242;method_27644(Lcom/mojang/brigadier/StringReader;)Ljava/util/UUID;
      official a Lgf;a(Lcom/mojang/brigadier/StringReader;)Ljava/util/UUID;
    • getExamples

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