Package net.minecraft.server.commands
Class EffectCommands
java.lang.Object
net.minecraft.server.commands.EffectCommands
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
clearEffect
(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Holder<MobEffect> pEffect) private static int
clearEffects
(CommandSourceStack pSource, Collection<? extends Entity> pTargets) private static int
giveEffect
(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Holder<MobEffect> pEffect, Integer pSeconds, int pAmplifier, boolean pShowParticles) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136954_, CommandBuildContext p_251610_)
-
Field Details
-
ERROR_GIVE_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_GIVE_FAILED -
ERROR_CLEAR_EVERYTHING_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_CLEAR_EVERYTHING_FAILED -
ERROR_CLEAR_SPECIFIC_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_CLEAR_SPECIFIC_FAILED
-
-
Constructor Details
-
EffectCommands
public EffectCommands()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136954_, CommandBuildContext p_251610_) -
giveEffect
private static int giveEffect(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Holder<MobEffect> pEffect, @Nullable Integer pSeconds, int pAmplifier, boolean pShowParticles) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
clearEffects
private static int clearEffects(CommandSourceStack pSource, Collection<? extends Entity> pTargets) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
clearEffect
private static int clearEffect(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Holder<MobEffect> pEffect) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-