Class EffectCommand

java.lang.Object
net.minecraft.command.impl.EffectCommand

public class EffectCommand extends Object
  • 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

    • EffectCommand

      public EffectCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198353_0_)
    • giveEffect

      private static int giveEffect(CommandSource p_198360_0_, Collection<? extends Entity> p_198360_1_, Effect p_198360_2_, @Nullable Integer p_198360_3_, int p_198360_4_, boolean p_198360_5_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • clearEffects

      private static int clearEffects(CommandSource p_198354_0_, Collection<? extends Entity> p_198354_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • clearEffect

      private static int clearEffect(CommandSource p_198355_0_, Collection<? extends Entity> p_198355_1_, Effect p_198355_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException