Interface WeaponImpl

All Known Implementing Classes:
BreakableWeapon, DummyWeapon, NoStatsProjectile, Projectile, Weapon

public interface WeaponImpl
Weapon implementation.
  • Method Details

    • onAttackAttempt

      void onAttackAttempt(RPEntity target, RPEntity attacker)
      Action when item is used as a weapon.
      Parameters:
      target - Entity targeted by attacker.
      attacker - Attacking entity.
    • onAttackSuccess

      void onAttackSuccess(RPEntity target, RPEntity attacker, int damage)
      Action when item is used as a weapon.
      Parameters:
      target - Entity targeted by attacker.
      attacker - Attacking entity.
      damage - Amount of damage resulting from attack.