Class AttackEvent.Damage

java.lang.Object
net.minecraftforge.eventbus.api.Event
Enclosing class:
AttackEvent

public static class AttackEvent.Damage extends AttackEvent
Event fired after all damage calculations have taken place for an attack. Any changes made during this event will be final.

Since:
June 18, 2019
  • Field Details

    • damage

      public double damage
      The amount of damage this will inflict. Note that decimal values are rounded down unless between 0 and 1, in which case they are rounded up to 1.
  • Constructor Details

  • Method Details

    • willBeFatal

      public boolean willBeFatal()
      Returns true if, using the current damage, the move will be fatal.