Class AttackEvent.CriticalHit

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

public static class AttackEvent.CriticalHit extends AttackEvent
Event fired after Pixelmon calculates the critical hit multiplier for this attack. This event will fire even if the Pokémon was not going to crit, and from this method it is possible to change the multiplier directly.

Since:
June 18, 2019
  • Field Details

    • critMultiplier

      public double critMultiplier
      The multiplier for damage.
  • Constructor Details

  • Method Details

    • isCrit

      public boolean isCrit()
      Returns true if this attack will receive a STAB.
    • setCrit

      public void setCrit(boolean crit)