Package net.minecraft.command.argument
Class MobEffectArgumentType
java.lang.Object
net.minecraft.command.argument.MobEffectArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<StatusEffect>
public class MobEffectArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<StatusEffect>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>
EXAMPLES
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
INVALID_EFFECT_EXCEPTION
-
Constructor Summary
Constructors Constructor Description MobEffectArgumentType()
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
EXAMPLES
-
INVALID_EFFECT_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_EFFECT_EXCEPTION
-
-
Constructor Details
-
MobEffectArgumentType
public MobEffectArgumentType()
-
-
Method Details
-
mobEffect
-
getMobEffect
public static StatusEffect getMobEffect(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) -
parse
public StatusEffect parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<StatusEffect>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
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<StatusEffect>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<StatusEffect>
-