Class PotionEffectAbilityEffect
java.lang.Object
org.woftnw.eof.ability.effect.AbilityEffect
org.woftnw.eof.ability.effect.PotionEffectAbilityEffect
-
Field Summary
FieldsFields inherited from class AbilityEffect
ALL_EFFECT_COLOR, OTHERS_EFFECT_COLOR, PLUGIN, SELF_EFFECT_COLOR, TARGET -
Constructor Summary
ConstructorsConstructorDescriptionPotionEffectAbilityEffect(ElytrasOfFire plugin, Target target, org.bukkit.potion.PotionEffect potionEffect) Create an PotionEffectAbilityEffect. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.bukkit.entity.Player user) net.kyori.adventure.text.ComponentGet the description of this ability.org.bukkit.potion.PotionEffectGet the potion effect.Methods inherited from class AbilityEffect
getTarget
-
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: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
-