+
+ +

Interface IAbilityEvent.DefendEvent

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getAttacker

        +
        IEntityLivingBase getAttacker()
        +
        Get the entity that attacked during defend.
        +
        +
        Returns:
        +
        the entity that was hit
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getDamage

        +
        float getDamage()
        +
        Get the damage amount.
        +
        +
        Returns:
        +
        the damage amount
        +
        +
      • +
      + + + +
        +
      • +

        setDamage

        +
        void setDamage​(float damage)
        +
        Set the damage amount. Allows scripts to modify damage.
        +
        +
        Parameters:
        +
        damage - the new damage amount
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+