Class IdentifierArgumentType

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

public class IdentifierArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Identifier>
Mappings:
Namespace Name
named net/minecraft/command/argument/IdentifierArgumentType
intermediary net/minecraft/class_2232
official fu
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      named EXAMPLES Lnet/minecraft/command/argument/IdentifierArgumentType;EXAMPLES:Ljava/util/Collection;
      intermediary field_9946 Lnet/minecraft/class_2232;field_9946:Ljava/util/Collection;
      official a Lfu;a:Ljava/util/Collection;
    • UNKNOWN_ADVANCEMENT_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ADVANCEMENT_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named UNKNOWN_ADVANCEMENT_EXCEPTION Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_ADVANCEMENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_9945 Lnet/minecraft/class_2232;field_9945:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official b Lfu;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • UNKNOWN_RECIPE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_RECIPE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named UNKNOWN_RECIPE_EXCEPTION Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_RECIPE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_9947 Lnet/minecraft/class_2232;field_9947:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official c Lfu;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
  • Constructor Details

    • IdentifierArgumentType

      public IdentifierArgumentType()
  • Method Details

    • identifier

      public static IdentifierArgumentType identifier()
      Mappings:
      Namespace Name Mixin selector
      named identifier Lnet/minecraft/command/argument/IdentifierArgumentType;identifier()Lnet/minecraft/command/argument/IdentifierArgumentType;
      intermediary method_9441 Lnet/minecraft/class_2232;method_9441()Lnet/minecraft/class_2232;
      official a Lfu;a()Lfu;
    • getAdvancementArgument

      public static AdvancementEntry getAdvancementArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named getAdvancementArgument Lnet/minecraft/command/argument/IdentifierArgumentType;getAdvancementArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/advancement/AdvancementEntry;
      intermediary method_9439 Lnet/minecraft/class_2232;method_9439(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_8779;
      official a Lfu;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lag;
    • getRecipeArgument

      public static RecipeEntry<?> getRecipeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named getRecipeArgument Lnet/minecraft/command/argument/IdentifierArgumentType;getRecipeArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/recipe/RecipeEntry;
      intermediary method_9442 Lnet/minecraft/class_2232;method_9442(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_8786;
      official b Lfu;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lcyz;
    • getIdentifier

      public static Identifier getIdentifier(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
      Mappings:
      Namespace Name Mixin selector
      named getIdentifier Lnet/minecraft/command/argument/IdentifierArgumentType;getIdentifier(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/Identifier;
      intermediary method_9443 Lnet/minecraft/class_2232;method_9443(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2960;
      official c Lfu;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lakq;
    • parse

      public Identifier parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Identifier>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/IdentifierArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/util/Identifier;
      intermediary method_9446 Lnet/minecraft/class_2232;method_9446(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2960;
      official a Lfu;a(Lcom/mojang/brigadier/StringReader;)Lakq;
    • getExamples

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