Class PotionEffectAbilityEffect

java.lang.Object
org.woftnw.eof.ability.effect.AbilityEffect
org.woftnw.eof.ability.effect.PotionEffectAbilityEffect

public class PotionEffectAbilityEffect extends AbilityEffect
  • Field Details

    • POTION_EFFECT

      protected final org.bukkit.potion.PotionEffect POTION_EFFECT
  • Constructor Details

    • PotionEffectAbilityEffect

      public PotionEffectAbilityEffect(ElytrasOfFire plugin, Target target, org.bukkit.potion.PotionEffect potionEffect)
      Create an PotionEffectAbilityEffect.
      Parameters:
      target - The target of the effect.
      potionEffect - The potion effect.
  • Method Details

    • getPotionEffect

      public org.bukkit.potion.PotionEffect getPotionEffect()
      Get the potion effect.
      Returns:
      The potion effect.
    • getDescription

      public net.kyori.adventure.text.Component getDescription()
      Description copied from class: AbilityEffect
      Get the description of this ability.
      Specified by:
      getDescription in class AbilityEffect
      Returns:
      The description as a TextComponent.
    • apply

      public void apply(org.bukkit.entity.Player user)
      Specified by:
      apply in class AbilityEffect