Interface IDBCEvent.DamagedEvent

    • Method Detail

      • getDamage

        float getDamage()
        Calculated based on Player's Stats, Dex, Blocking, etc.
        Returns:
        Damage Dealt to the HP of the Player
      • setDamage

        void setDamage​(float damage)
        Allows you to change / intercept the damage to HP and modify to set new HP. Note if Damage is 0 - then it could be Friendly Fist protecting player. Making this greater could kill the player.
        Parameters:
        damage - The new damage to HP
      • getDamageSource

        IDamageSource getDamageSource()
        Returns:
        IDamageSource
      • isDamageSourceKiAttack

        boolean isDamageSourceKiAttack()
        Returns:
        Damage Type == 3
      • getType

        float getType()
        Returns:
        0: Unknown, 1: Player, 2: NPC, 3: Ki Attack