Class EnchantmentArgumentType

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

public class EnchantmentArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Enchantment>
Mappings:
Namespace Name
official dz
intermediary net/minecraft/class_2194
named net/minecraft/command/argument/EnchantmentArgumentType
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      official b Ldz;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 Ldz;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;
  • Constructor Details

    • EnchantmentArgumentType

      public EnchantmentArgumentType()
  • Method Details

    • enchantment

      public static EnchantmentArgumentType enchantment()
      Mappings:
      Namespace Name Mixin selector
      official a Ldz;a()Ldz;
      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 Ldz;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lbxy;
      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
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Enchantment>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Ldz;a(Lcom/mojang/brigadier/StringReader;)Lbxy;
      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)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<Enchantment>
      Mappings:
      Namespace Name Mixin selector
      official listSuggestions Ldz;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()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<Enchantment>