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 dz
intermediary net/minecraft/class_2194
named net/minecraft/command/argument/EnchantmentArgumentType
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection<String>
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnchantmentArgumentType
static Enchantment
getEnchantment
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse
(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
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
- 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;)Lbyq;
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
Ldz;a(Lcom/mojang/brigadier/StringReader;)Lbyq;
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
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
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Enchantment>
-