接口 WeaponComponent

所有超级接口:
ConfigurationSerializable

@Experimental public interface WeaponComponent extends ConfigurationSerializable
表示一个可以将任何物品转变为武器的组件。
  • 方法详细资料

    • getItemDamagePerAttack

      int getItemDamagePerAttack()
      获取每次攻击的武器伤害。

      原文:Get the weapon damage per attack.

      返回:
      每次攻击的伤害
    • setItemDamagePerAttack

      void setItemDamagePerAttack(int damage)
      设置每次攻击的武器伤害。

      原文:Set the weapon damage per attack.

      参数:
      damage - 要设置的伤害值。必须为0或正整数
    • getDisableBlockingForSeconds

      float getDisableBlockingForSeconds()
      获取此武器禁用格挡的时间(以秒为单位)。

      原文:Get the time in seconds which this weapon disabled blocking for.

      返回:
      禁用格挡的时间(以秒为单位)
    • setDisableBlockingForSeconds

      void setDisableBlockingForSeconds(float time)
      设置此武器禁用格挡的时间(以秒为单位)。

      原文:Set the time in seconds which this weapon disabled blocking for.

      参数:
      time - 禁用格挡的时间(以秒为单位)