类 IdentifierArgumentType

  • 所有已实现的接口:
    com.mojang.brigadier.arguments.ArgumentType<Identifier>

    public class IdentifierArgumentType
    extends Object
    implements com.mojang.brigadier.arguments.ArgumentType<Identifier>
    Mappings:
    Namespace Name
    official ed
    intermediary net/minecraft/class_2232
    named net/minecraft/command/argument/IdentifierArgumentType
    • 字段详细资料

      • EXAMPLES

        private static final Collection<String> EXAMPLES
        Mappings:
        Namespace Name Mixin selector
        official a Led;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 Led;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 Led;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 Led;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 Led;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 Led;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;
    • 构造器详细资料

      • IdentifierArgumentType

        public IdentifierArgumentType()
    • 方法详细资料

      • identifier

        public static IdentifierArgumentType identifier()
        Mappings:
        Namespace Name Mixin selector
        official a Led;a()Led;
        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
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official a Led;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lad;
        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
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official b Led;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lbsj;
        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
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official c Led;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldkh;
        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
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official d Led;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldja;
        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
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official e Led;e(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Latt;
        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 Led;f(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lwp;
        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
        指定者:
        parse 在接口中 com.mojang.brigadier.arguments.ArgumentType<Identifier>
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official a Led;a(Lcom/mojang/brigadier/StringReader;)Lwp;
        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()
        指定者:
        getExamples 在接口中 com.mojang.brigadier.arguments.ArgumentType<Identifier>
        Mappings:
        Namespace Name Mixin selector
        official getExamples Led;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;