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>EXAMPLESstatic com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeINVALID_EFFECT_EXCEPTION -
Constructor Summary
Constructors Constructor Description MobEffectArgumentType() -
Method Summary
Modifier and Type Method Description Collection<String>getExamples()static StatusEffectgetMobEffect(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 MobEffectArgumentTypemobEffect()StatusEffectparse(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:
parsein 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:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<StatusEffect>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<StatusEffect>
-