类 EnchantmentArgumentType

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

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

      • EXAMPLES

        private static final Collection<String> EXAMPLES
        Mappings:
        Namespace Name Mixin selector
        official b Ldt;b:Ljava/util/Collection;
        intermediary field_9871 Lnet/minecraft/class_2194;field_9871:Ljava/util/Collection;
        named EXAMPLES Lnet/minecraft/command/argument/EnchantmentArgumentType;EXAMPLES:Ljava/util/Collection;
      • UNKNOWN_ENCHANTMENT_EXCEPTION

        public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ENCHANTMENT_EXCEPTION
        Mappings:
        Namespace Name Mixin selector
        official a Ldt;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
        intermediary field_9872 Lnet/minecraft/class_2194;field_9872:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
        named UNKNOWN_ENCHANTMENT_EXCEPTION Lnet/minecraft/command/argument/EnchantmentArgumentType;UNKNOWN_ENCHANTMENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • 构造器详细资料

      • EnchantmentArgumentType

        public EnchantmentArgumentType()
    • 方法详细资料

      • enchantment

        public static EnchantmentArgumentType enchantment()
        Mappings:
        Namespace Name Mixin selector
        official a Ldt;a()Ldt;
        intermediary method_9336 Lnet/minecraft/class_2194;method_9336()Lnet/minecraft/class_2194;
        named enchantment Lnet/minecraft/command/argument/EnchantmentArgumentType;enchantment()Lnet/minecraft/command/argument/EnchantmentArgumentType;
      • getEnchantment

        public static Enchantment getEnchantment​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
                                                 String name)
        Mappings:
        Namespace Name Mixin selector
        official a Ldt;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lbtl;
        intermediary method_9334 Lnet/minecraft/class_2194;method_9334(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1887;
        named getEnchantment Lnet/minecraft/command/argument/EnchantmentArgumentType;getEnchantment(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/enchantment/Enchantment;
      • parse

        public Enchantment parse​(com.mojang.brigadier.StringReader stringReader)
                          throws com.mojang.brigadier.exceptions.CommandSyntaxException
        指定者:
        parse 在接口中 com.mojang.brigadier.arguments.ArgumentType<Enchantment>
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official a Ldt;a(Lcom/mojang/brigadier/StringReader;)Lbtl;
        intermediary method_9335 Lnet/minecraft/class_2194;method_9335(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_1887;
        named parse Lnet/minecraft/command/argument/EnchantmentArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/enchantment/Enchantment;
      • listSuggestions

        public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions​(com.mojang.brigadier.context.CommandContext<S> context,
                                                                                                  com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
        指定者:
        listSuggestions 在接口中 com.mojang.brigadier.arguments.ArgumentType<Enchantment>
        Mappings:
        Namespace Name Mixin selector
        official listSuggestions Ldt;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
        intermediary listSuggestions Lnet/minecraft/class_2194;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
        named listSuggestions Lnet/minecraft/command/argument/EnchantmentArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      • getExamples

        public Collection<String> getExamples()
        指定者:
        getExamples 在接口中 com.mojang.brigadier.arguments.ArgumentType<Enchantment>
        Mappings:
        Namespace Name Mixin selector
        official getExamples Ldt;getExamples()Ljava/util/Collection;
        intermediary getExamples Lnet/minecraft/class_2194;getExamples()Ljava/util/Collection;
        named getExamples Lnet/minecraft/command/argument/EnchantmentArgumentType;getExamples()Ljava/util/Collection;