Class AttackEvent.Recoil

java.lang.Object
net.neoforged.bus.api.Event
Enclosing class:
AttackEvent

public static class AttackEvent.Recoil extends AttackEvent
Event fired after recoil damage has been taken.
Since:
May 15, 2022
  • Constructor Details

    • Recoil

      public Recoil(BattleController battleController, PixelmonWrapper user, double recoil, boolean fatal)
      Constructs an AttackEvent that also contains info on how much recoil damage the AttackEvent.user took and if the recoil damage was fatal.
      Parameters:
      battleController - The object managing the battle.
      user - The Pixelmon that made an attack.
      recoil - The amount of damage taken from the recoil of the attack.
      fatal - Whether the AttackEvent.user died from the recoil.
  • Method Details

    • getRecoil

      public double getRecoil()
    • isFatal

      public boolean isFatal()