Class AbilityEffect

java.lang.Object
org.woftnw.eof.ability.effect.AbilityEffect
Direct Known Subclasses:
DamageAbilityEffect, DataAbilityEffect, IgniteAbilityEffect, PotionEffectAbilityEffect

public abstract class AbilityEffect extends Object
Represents an effect that an ability has.
  • 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

      protected final ElytrasOfFire PLUGIN
    • TARGET

      protected final Target TARGET
      The target of the effect.
  • Constructor Details

    • AbilityEffect

      protected AbilityEffect(ElytrasOfFire plugin, Target target)
      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

      public Target getTarget()
      Get the target of this effect.
      Returns:
      The Target of this effect.
    • apply

      public abstract void apply(org.bukkit.entity.Player user)