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
official eq
intermediary net/minecraft/class_2232
named net/minecraft/command/argument/IdentifierArgumentType
  • Field Details

    • EXAMPLES

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

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

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

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_PREDICATE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official d Leq;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_21506 Lnet/minecraft/class_2232;field_21506:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named UNKNOWN_PREDICATE_EXCEPTION Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_PREDICATE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • UNKNOWN_ITEM_MODIFIER_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ITEM_MODIFIER_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official e Leq;e:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_28002 Lnet/minecraft/class_2232;field_28002:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named UNKNOWN_ITEM_MODIFIER_EXCEPTION Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_ITEM_MODIFIER_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
  • Constructor Details

    • IdentifierArgumentType

      public IdentifierArgumentType()
  • Method Details

    • identifier

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

      public static Advancement 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
      official a Leq;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Laf;
      intermediary method_9439 Lnet/minecraft/class_2232;method_9439(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_161;
      named getAdvancementArgument Lnet/minecraft/command/argument/IdentifierArgumentType;getAdvancementArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/advancement/Advancement;
    • getRecipeArgument

      public static Recipe<?> 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
      official b Leq;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lccs;
      intermediary method_9442 Lnet/minecraft/class_2232;method_9442(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1860;
      named getRecipeArgument Lnet/minecraft/command/argument/IdentifierArgumentType;getRecipeArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/recipe/Recipe;
    • getPredicateArgument

      public static LootCondition getPredicateArgument(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
      official c Leq;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldtz;
      intermediary method_23727 Lnet/minecraft/class_2232;method_23727(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_5341;
      named getPredicateArgument Lnet/minecraft/command/argument/IdentifierArgumentType;getPredicateArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/loot/condition/LootCondition;
    • getItemModifierArgument

      public static LootFunction getItemModifierArgument(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
      official d Leq;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldsq;
      intermediary method_32688 Lnet/minecraft/class_2232;method_32688(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_117;
      named getItemModifierArgument Lnet/minecraft/command/argument/IdentifierArgumentType;getItemModifierArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/loot/function/LootFunction;
    • getIdentifier

      public static Identifier getIdentifier(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
      Mappings:
      Namespace Name Mixin selector
      official e Leq;e(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Laaj;
      intermediary method_9443 Lnet/minecraft/class_2232;method_9443(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2960;
      named getIdentifier Lnet/minecraft/command/argument/IdentifierArgumentType;getIdentifier(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/Identifier;
    • 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
      official a Leq;a(Lcom/mojang/brigadier/StringReader;)Laaj;
      intermediary method_9446 Lnet/minecraft/class_2232;method_9446(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2960;
      named parse Lnet/minecraft/command/argument/IdentifierArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/util/Identifier;
    • getExamples

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