接口 KineticWeaponComponent.Condition

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

public static interface KineticWeaponComponent.Condition extends ConfigurationSerializable
Represents a condition for an attack effect.
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    Gets the ticks after which the condition can no longer apply.
    float
    Gets the minimum speed between the attacker and target for the effect to apply.
    float
    Gets the minimum speed of the attacker for the effect to apply.
    void
    Sets the ticks after which the condition can no longer apply.
    void
    setMinRelativeSpeed(float speed)
    Sets the minimum speed between the attacker and target for the effect to apply.
    void
    setMinSpeed(float speed)
    Sets the minimum speed of the attacker for the effect to apply.

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

    serialize
  • 方法详细资料

    • getMaxDurationTicks

      int getMaxDurationTicks()
      Gets the ticks after which the condition can no longer apply.
      返回:
      max duration ticks
    • setMaxDurationTicks

      void setMaxDurationTicks(int ticks)
      Sets the ticks after which the condition can no longer apply.
      参数:
      ticks - new max duration ticks
    • getMinSpeed

      float getMinSpeed()
      Gets the minimum speed of the attacker for the effect to apply.
      返回:
      minimum speed
    • setMinSpeed

      void setMinSpeed(float speed)
      Sets the minimum speed of the attacker for the effect to apply.
      参数:
      speed - new minimum speed
    • getMinRelativeSpeed

      float getMinRelativeSpeed()
      Gets the minimum speed between the attacker and target for the effect to apply.
      返回:
      minimum speed
    • setMinRelativeSpeed

      void setMinRelativeSpeed(float speed)
      Sets the minimum speed between the attacker and target for the effect to apply.
      参数:
      speed - new minimum speed