接口 KineticWeaponComponent.Condition

所有超级接口:
ConfigurationSerializable
封闭接口:
KineticWeaponComponent

public static interface KineticWeaponComponent.Condition extends ConfigurationSerializable
表示攻击效果的条件。
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    获取条件不再适用的刻数。
    float
    获取效果生效所需的攻击者与目标之间的最低相对速度。
    float
    获取效果生效所需的攻击者最低速度。
    void
    设置条件不再适用的刻数。
    void
    setMinRelativeSpeed(float speed)
    设置效果生效所需的攻击者与目标之间的最低相对速度。
    void
    setMinSpeed(float speed)
    设置效果生效所需的攻击者最低速度。

    从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable

    serialize
  • 方法详细资料

    • getMaxDurationTicks

      int getMaxDurationTicks()
      获取条件不再适用的刻数。

      原文:Gets the ticks after which the condition can no longer apply.

      返回:
      最大持续时间(以刻为单位)
    • setMaxDurationTicks

      void setMaxDurationTicks(int ticks)
      设置条件不再适用的刻数。

      原文:Sets the ticks after which the condition can no longer apply.

      参数:
      ticks - 新的最大持续时间(以刻为单位)
    • getMinSpeed

      float getMinSpeed()
      获取效果生效所需的攻击者最低速度。

      原文:Gets the minimum speed of the attacker for the effect to apply.

      返回:
      最低速度
    • setMinSpeed

      void setMinSpeed(float speed)
      设置效果生效所需的攻击者最低速度。

      原文:Sets the minimum speed of the attacker for the effect to apply.

      参数:
      speed - 新的最低速度
    • getMinRelativeSpeed

      float getMinRelativeSpeed()
      获取效果生效所需的攻击者与目标之间的最低相对速度。

      原文:Gets the minimum speed between the attacker and target for the effect to apply.

      返回:
      最低速度
    • setMinRelativeSpeed

      void setMinRelativeSpeed(float speed)
      设置效果生效所需的攻击者与目标之间的最低相对速度。

      原文:Sets the minimum speed between the attacker and target for the effect to apply.

      参数:
      speed - 新的最低速度