public class EffectCommand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
CLEAR_EVERYTHING_FAILED_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
CLEAR_SPECIFIC_FAILED_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
GIVE_FAILED_EXCEPTION |
Constructor and Description |
---|
EffectCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
addEffect(CommandSource source,
java.util.Collection<? extends Entity> targets,
Effect effect,
java.lang.Integer seconds,
int amplifier,
boolean showParticles) |
private static int |
clearAllEffects(CommandSource source,
java.util.Collection<? extends Entity> targets) |
private static int |
clearEffect(CommandSource source,
java.util.Collection<? extends Entity> targets,
Effect effect) |
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType GIVE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType CLEAR_EVERYTHING_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType CLEAR_SPECIFIC_FAILED_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static int addEffect(CommandSource source, java.util.Collection<? extends Entity> targets, Effect effect, @Nullable java.lang.Integer seconds, int amplifier, boolean showParticles) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int clearAllEffects(CommandSource source, java.util.Collection<? extends Entity> targets) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int clearEffect(CommandSource source, java.util.Collection<? extends Entity> targets, Effect effect) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException