Class DamageCommand

java.lang.Object
net.minecraft.server.commands.DamageCommand

public class DamageCommand extends Object
  • Field Details

    • ERROR_INVULNERABLE

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVULNERABLE
  • Constructor Details

    • DamageCommand

      public DamageCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_270226_, CommandBuildContext p_270136_)
    • damage

      private static int damage(CommandSourceStack p_270409_, Entity p_270496_, float p_270836_, DamageSource p_270727_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException