Interface WeaponComponent

All Superinterfaces:
ConfigurationSerializable

@Experimental public interface WeaponComponent extends ConfigurationSerializable
Represents a component which can turn any item into a weapon.
  • Method Details

    • getItemDamagePerAttack

      int getItemDamagePerAttack()
      Get the weapon damage per attack.
      Returns:
      the damage per attack
    • setItemDamagePerAttack

      void setItemDamagePerAttack(int damage)
      Set the weapon damage per attack.
      Parameters:
      damage - the damage to set. Must be 0 or a positive integer
    • getDisableBlockingForSeconds

      float getDisableBlockingForSeconds()
      Get the time in seconds which this weapon disabled blocking for.
      Returns:
      the blocking disable time in seconds
    • setDisableBlockingForSeconds

      void setDisableBlockingForSeconds(float time)
      Set the time in seconds which this weapon disabled blocking for.
      Parameters:
      time - the blocking disable time in seconds