Package net.minecraft.server.commands
Class EffectCommands
java.lang.Object
net.minecraft.server.commands.EffectCommands
-
Field Summary
Modifier 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
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
clearEffect
(CommandSourceStack p_136963_, Collection<? extends Entity> p_136964_, MobEffect p_136965_) private static int
clearEffects
(CommandSourceStack p_136960_, Collection<? extends Entity> p_136961_) private static int
giveEffect
(CommandSourceStack p_136967_, Collection<? extends Entity> p_136968_, MobEffect p_136969_, Integer p_136970_, int p_136971_, boolean p_136972_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136954_)
-
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
-
giveEffect
private static int giveEffect(CommandSourceStack p_136967_, Collection<? extends Entity> p_136968_, MobEffect p_136969_, @Nullable Integer p_136970_, int p_136971_, boolean p_136972_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
clearEffects
private static int clearEffects(CommandSourceStack p_136960_, Collection<? extends Entity> p_136961_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
clearEffect
private static int clearEffect(CommandSourceStack p_136963_, Collection<? extends Entity> p_136964_, MobEffect p_136965_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-