Class GameProfileArgumentType

java.lang.Object
net.minecraft.command.argument.GameProfileArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>

public class GameProfileArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>
Mappings:
Namespace Name
named net/minecraft/command/argument/GameProfileArgumentType
intermediary net/minecraft/class_2191
official fi
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      named EXAMPLES Lnet/minecraft/command/argument/GameProfileArgumentType;EXAMPLES:Ljava/util/Collection;
      intermediary field_9868 Lnet/minecraft/class_2191;field_9868:Ljava/util/Collection;
      official b Lfi;b:Ljava/util/Collection;
    • UNKNOWN_PLAYER_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType UNKNOWN_PLAYER_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named UNKNOWN_PLAYER_EXCEPTION Lnet/minecraft/command/argument/GameProfileArgumentType;UNKNOWN_PLAYER_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_9869 Lnet/minecraft/class_2191;field_9869:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      official a Lfi;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
  • Constructor Details

    • GameProfileArgumentType

      public GameProfileArgumentType()
  • Method Details

    • getProfileArgument

      public static Collection<com.mojang.authlib.GameProfile> getProfileArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named getProfileArgument Lnet/minecraft/command/argument/GameProfileArgumentType;getProfileArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
      intermediary method_9330 Lnet/minecraft/class_2191;method_9330(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
      official a Lfi;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
    • gameProfile

      public static GameProfileArgumentType gameProfile()
      Mappings:
      Namespace Name Mixin selector
      named gameProfile Lnet/minecraft/command/argument/GameProfileArgumentType;gameProfile()Lnet/minecraft/command/argument/GameProfileArgumentType;
      intermediary method_9329 Lnet/minecraft/class_2191;method_9329()Lnet/minecraft/class_2191;
      official a Lfi;a()Lfi;
    • parse

      public <S> GameProfileArgumentType.GameProfileArgument parse(com.mojang.brigadier.StringReader stringReader, S s) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/GameProfileArgumentType;parse(Lcom/mojang/brigadier/StringReader;Ljava/lang/Object;)Lnet/minecraft/command/argument/GameProfileArgumentType$GameProfileArgument;
      intermediary method_61181 Lnet/minecraft/class_2191;method_61181(Lcom/mojang/brigadier/StringReader;Ljava/lang/Object;)Lnet/minecraft/class_2191$class_2192;
      official a Lfi;a(Lcom/mojang/brigadier/StringReader;Ljava/lang/Object;)Lfi$a;
    • parse

      public GameProfileArgumentType.GameProfileArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/GameProfileArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/GameProfileArgumentType$GameProfileArgument;
      intermediary method_61180 Lnet/minecraft/class_2191;method_61180(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2191$class_2192;
      official a Lfi;a(Lcom/mojang/brigadier/StringReader;)Lfi$a;
    • parse

      private static GameProfileArgumentType.GameProfileArgument parse(com.mojang.brigadier.StringReader reader, boolean allowAtSelectors) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/GameProfileArgumentType;parse(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/command/argument/GameProfileArgumentType$GameProfileArgument;
      intermediary method_9331 Lnet/minecraft/class_2191;method_9331(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/class_2191$class_2192;
      official a Lfi;a(Lcom/mojang/brigadier/StringReader;Z)Lfi$a;
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>
      Mappings:
      Namespace Name Mixin selector
      named listSuggestions Lnet/minecraft/command/argument/GameProfileArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary listSuggestions Lnet/minecraft/class_2191;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      official listSuggestions Lfi;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
    • getExamples

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