public class EffectCommand extends 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 |
executeClear(ServerCommandSource source,
Collection<? extends Entity> targets) |
private static int |
executeClear(ServerCommandSource source,
Collection<? extends Entity> targets,
StatusEffect effect) |
private static int |
executeGive(ServerCommandSource source,
Collection<? extends Entity> targets,
StatusEffect effect,
Integer seconds,
int amplifier,
boolean showParticles) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> 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<ServerCommandSource> dispatcher)
private static int executeGive(ServerCommandSource source, Collection<? extends Entity> targets, StatusEffect effect, @Nullable Integer seconds, int amplifier, boolean showParticles)
private static int executeClear(ServerCommandSource source, Collection<? extends Entity> targets)
private static int executeClear(ServerCommandSource source, Collection<? extends Entity> targets, StatusEffect effect)