Package net.minecraft.server.command
Class EffectCommand
java.lang.Object
net.minecraft.server.command.EffectCommand
public class EffectCommand extends Object
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description EffectCommand()
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
GIVE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType GIVE_FAILED_EXCEPTION -
CLEAR_EVERYTHING_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType CLEAR_EVERYTHING_FAILED_EXCEPTION -
CLEAR_SPECIFIC_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType CLEAR_SPECIFIC_FAILED_EXCEPTION
-
-
Constructor Details
-
EffectCommand
public EffectCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
executeGive
private static int executeGive(ServerCommandSource source, Collection<? extends Entity> targets, StatusEffect effect, @Nullable Integer seconds, int amplifier, boolean showParticles) -
executeClear
-
executeClear
private static int executeClear(ServerCommandSource source, Collection<? extends Entity> targets, StatusEffect effect)
-