java.lang.Object
studio.magemonkey.divinity.manager.effects.IEffect
Direct Known Subclasses:
DisarmEffect, IExpirableEffect

public abstract class IEffect extends Object
  • Field Details

    • caster

      protected org.bukkit.entity.LivingEntity caster
    • target

      protected org.bukkit.entity.LivingEntity target
    • potions

      protected Map<org.bukkit.potion.PotionEffectType,org.bukkit.potion.PotionEffect> potions
    • charges

      protected int charges
    • threshold

      protected double threshold
    • msgApply

      protected String msgApply
    • msgExpire

      protected String msgExpire
    • msgReject

      protected String msgReject
  • Constructor Details

    • IEffect

      protected IEffect(@NotNull studio.magemonkey.divinity.manager.effects.IEffect.Builder<?> builder)
    • IEffect

      public IEffect(@Nullable org.bukkit.entity.LivingEntity caster)
    • IEffect

      public IEffect(@Nullable org.bukkit.entity.LivingEntity caster, int charges)
  • Method Details

    • getThreshold

      public double getThreshold()
    • setThreshold

      public void setThreshold(double threshold)
    • setApplyMessage

      public void setApplyMessage(@NotNull String msg)
    • setExpireMessage

      public void setExpireMessage(@NotNull String msg)
    • setRejectMessage

      public void setRejectMessage(@NotNull String msg)
    • applyTo

      public boolean applyTo(@NotNull org.bukkit.entity.LivingEntity e)
    • getType

      @NotNull public abstract IEffectType getType()
    • isPositive

      public boolean isPositive()
    • isType

      public boolean isType(@NotNull IEffectType type)
    • getCaster

      @Nullable public org.bukkit.entity.LivingEntity getCaster()
    • getTarget

      @NotNull public org.bukkit.entity.LivingEntity getTarget()
    • getCharges

      public final int getCharges()
    • takeCharge

      public final int takeCharge()
    • trigger

      public void trigger(boolean force)
    • clear

      public void clear()
    • isExpired

      public boolean isExpired()
    • onTrigger

      protected abstract boolean onTrigger(boolean force)
    • onClear

      protected abstract void onClear()
    • resetOnDeath

      public abstract boolean resetOnDeath()
    • applyPotionEffects

      protected final void applyPotionEffects()
    • removePotionEffects

      protected final void removePotionEffects()