接口 WeaponComponent

所有超级接口:
ConfigurationSerializable

@Experimental public interface WeaponComponent extends ConfigurationSerializable
Represents a component which can turn any item into a weapon.
  • 方法详细资料

    • getItemDamagePerAttack

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

      void setItemDamagePerAttack(int damage)
      Set the weapon damage per attack.
      参数:
      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.
      返回:
      the blocking disable time in seconds
    • setDisableBlockingForSeconds

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