public class ItemEnchantmentArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Enchantment>
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_ENCHANTMENT_EXCEPTION |
Constructor and Description |
---|
ItemEnchantmentArgumentType() |
Modifier and Type | Method and Description |
---|---|
static Enchantment |
getEnchantment(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
Collection<String> |
getExamples() |
static ItemEnchantmentArgumentType |
itemEnchantment() |
<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) |
private static final Collection<String> EXAMPLES
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ENCHANTMENT_EXCEPTION
public static ItemEnchantmentArgumentType itemEnchantment()
public static Enchantment getEnchantment(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public Enchantment parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<Enchantment>
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<Enchantment>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<Enchantment>