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>
  • Field Details

    • INVALID_UUID

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_UUID
    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • VALID_CHARACTERS

      private static final Pattern VALID_CHARACTERS
  • Constructor Details

    • UuidArgumentType

      public UuidArgumentType()
  • Method Details

    • getUuid

      public static UUID getUuid​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
    • uuid

      public static UuidArgumentType uuid()
    • 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
    • getExamples

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