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 dy
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 Ldy;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 Ldy;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 Ldy;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 Ldy;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_ATTRIBUTE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ATTRIBUTE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official e Ldy;e:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_24267 Lnet/minecraft/class_2232;field_24267:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named UNKNOWN_ATTRIBUTE_EXCEPTION Lnet/minecraft/command/argument/IdentifierArgumentType;UNKNOWN_ATTRIBUTE_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 f Ldy;f: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 Ldy;a()Ldy;
      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 Ldy;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ly;
      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 Ldy;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lbqn;
      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 Ldy;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldha;
      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 Ldy;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldft;
      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;
    • getAttributeArgument

      public static EntityAttribute getAttributeArgument​(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 e Ldy;e(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lasd;
      intermediary method_27575 Lnet/minecraft/class_2232;method_27575(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1320;
      named getAttributeArgument Lnet/minecraft/command/argument/IdentifierArgumentType;getAttributeArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/entity/attribute/EntityAttribute;
    • getIdentifier

      public static Identifier getIdentifier​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
      Mappings:
      Namespace Name Mixin selector
      official f Ldy;f(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lwb;
      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 Ldy;a(Lcom/mojang/brigadier/StringReader;)Lwb;
      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>
      Mappings:
      Namespace Name Mixin selector
      official getExamples Ldy;getExamples()Ljava/util/Collection;
      intermediary getExamples Lnet/minecraft/class_2232;getExamples()Ljava/util/Collection;
      named getExamples Lnet/minecraft/command/argument/IdentifierArgumentType;getExamples()Ljava/util/Collection;