Package net.minecraft.command.argument
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 dn
intermediary net/minecraft/class_2194
named net/minecraft/command/argument/EnchantmentArgumentType
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>
EXAMPLES
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
UNKNOWN_ENCHANTMENT_EXCEPTION
-
Constructor Summary
Constructors Constructor Description EnchantmentArgumentType()
-
Method Summary
Modifier and Type Method Description static EnchantmentArgumentType
enchantment()
static Enchantment
getEnchantment(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
Collection<String>
getExamples()
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
Enchantment
parse(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official b
Ldn;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
Ldn;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
- Mappings:
Namespace Name Mixin selector official a
Ldn;a()Ldn;
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
Ldn;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lbrp;
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 interfacecom.mojang.brigadier.arguments.ArgumentType<Enchantment>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ldn;a(Lcom/mojang/brigadier/StringReader;)Lbrp;
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 interfacecom.mojang.brigadier.arguments.ArgumentType<Enchantment>
- Mappings:
Namespace Name Mixin selector official listSuggestions
Ldn;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
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Enchantment>
- Mappings:
Namespace Name Mixin selector official getExamples
Ldn;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;
-