Class AbilityEffect
java.lang.Object
org.woftnw.eof.ability.effect.AbilityEffect
- Direct Known Subclasses:
DamageAbilityEffect, DataAbilityEffect, IgniteAbilityEffect, PotionEffectAbilityEffect
Represents an effect that an ability has.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final net.kyori.adventure.text.format.TextColorprotected static final net.kyori.adventure.text.format.TextColorprotected final ElytrasOfFireprotected static final net.kyori.adventure.text.format.TextColorprotected final TargetThe target of the effect. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbilityEffect(ElytrasOfFire plugin, Target target) Create an AbilityEffect. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidapply(org.bukkit.entity.Player user) abstract net.kyori.adventure.text.ComponentGet the description of this ability.Get the target of this effect.
-
Field Details
-
SELF_EFFECT_COLOR
protected static final net.kyori.adventure.text.format.TextColor SELF_EFFECT_COLOR -
ALL_EFFECT_COLOR
protected static final net.kyori.adventure.text.format.TextColor ALL_EFFECT_COLOR -
OTHERS_EFFECT_COLOR
protected static final net.kyori.adventure.text.format.TextColor OTHERS_EFFECT_COLOR -
PLUGIN
-
TARGET
The target of the effect.
-
-
Constructor Details
-
AbilityEffect
Create an AbilityEffect.- Parameters:
plugin- The plugin instance.target- The target of the effect.
-
-
Method Details
-
getDescription
public abstract net.kyori.adventure.text.Component getDescription()Get the description of this ability.- Returns:
- The description as a
TextComponent.
-
getTarget
-
apply
public abstract void apply(org.bukkit.entity.Player user)
-