Interface WeaponComponent

All Superinterfaces:
ConfigurationSerializable

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

    • getItemDamagePerAttack Link icon

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

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

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

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