接口 KineticWeaponComponent.Condition
- 所有超级接口:
ConfigurationSerializable
- 封闭接口:
- KineticWeaponComponent
Represents a condition for an attack effect.
-
方法概要
修饰符和类型方法说明intGets 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.从接口继承的方法 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
-