Interface KineticWeaponComponent.Condition

All Superinterfaces:
ConfigurationSerializable
Enclosing interface:
KineticWeaponComponent

public static interface KineticWeaponComponent.Condition extends ConfigurationSerializable
Represents a condition for an attack effect.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable

    serialize
  • Method Details

    • getMaxDurationTicks

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

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

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

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

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

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