Package net.minecraft.commands.arguments
Class MobEffectArgument
java.lang.Object
net.minecraft.commands.arguments.MobEffectArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<MobEffect>
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static Collection<String>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MobEffectArgument
effect()
static MobEffect
getEffect(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_98430_, String p_98431_)
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_98438_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_98439_)
parse(com.mojang.brigadier.StringReader p_98428_)
-
Field Details
-
EXAMPLES
-
ERROR_UNKNOWN_EFFECT
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_EFFECT
-
-
Constructor Details
-
MobEffectArgument
public MobEffectArgument()
-
-
Method Details
-
effect
-
getEffect
public static MobEffect getEffect(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_98430_, String p_98431_) -
parse
public MobEffect parse(com.mojang.brigadier.StringReader p_98428_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<MobEffect>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_98438_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_98439_)- Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<MobEffect>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<MobEffect>
-