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