Interface WeaponImpl
- All Known Implementing Classes:
BreakableWeapon,DummyWeapon,NoStatsProjectile,Projectile,Weapon
public interface WeaponImpl
Weapon implementation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonAttackAttempt(RPEntity target, RPEntity attacker) Action when item is used as a weapon.voidonAttackSuccess(RPEntity target, RPEntity attacker, int damage) Action when item is used as a weapon.
-
Method Details
-
onAttackAttempt
Action when item is used as a weapon.- Parameters:
target- Entity targeted by attacker.attacker- Attacking entity.
-
onAttackSuccess
Action when item is used as a weapon.- Parameters:
target- Entity targeted by attacker.attacker- Attacking entity.damage- Amount of damage resulting from attack.
-