Interface KineticWeaponComponent.Condition
- All Superinterfaces:
ConfigurationSerializable
- Enclosing interface:
KineticWeaponComponent
Represents a condition for an attack effect.
-
Method Summary
Modifier and TypeMethodDescriptionintGets the ticks after which the condition can no longer apply.floatGets the minimum speed between the attacker and target for the effect to apply.floatGets the minimum speed of the attacker for the effect to apply.voidsetMaxDurationTicks(int ticks) Sets the ticks after which the condition can no longer apply.voidsetMinRelativeSpeed(float speed) Sets the minimum speed between the attacker and target for the effect to apply.voidsetMinSpeed(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
-