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 pSource, Entity pTarget, float pAmount, DamageSource pDamageType) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException