Class DamageAbilityEffect
java.lang.Object
org.woftnw.eof.ability.effect.AbilityEffect
org.woftnw.eof.ability.effect.DamageAbilityEffect
-
Field Summary
FieldsFields inherited from class AbilityEffect
ALL_EFFECT_COLOR, OTHERS_EFFECT_COLOR, PLUGIN, SELF_EFFECT_COLOR, TARGET -
Constructor Summary
ConstructorsConstructorDescriptionDamageAbilityEffect(ElytrasOfFire plugin, Target target, float damage) Create an AbilityEffect. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.bukkit.entity.Player user) floatGet the damage of this effect.net.kyori.adventure.text.ComponentGet the description of this ability.Methods inherited from class AbilityEffect
getTarget
-
Field Details
-
DAMAGE
protected final float DAMAGEThe damage of the effect.
-
-
Constructor Details
-
DamageAbilityEffect
Create an AbilityEffect.- Parameters:
target- The target of the effect.damage- The damage of the effect.
-
-
Method Details
-
getDamage
public float getDamage()Get the damage of this effect.- Returns:
- The damage of this effect.
-
getDescription
public net.kyori.adventure.text.Component getDescription()Description copied from class:AbilityEffectGet the description of this ability.- Specified by:
getDescriptionin classAbilityEffect- Returns:
- The description as a
TextComponent.
-
apply
public void apply(org.bukkit.entity.Player user) - Specified by:
applyin classAbilityEffect
-