Class PermanentEffect

All Implemented Interfaces:
org.bukkit.event.Listener

public class PermanentEffect extends RunnableSimpleTrait
A PermanentEffect is an ability that constantly applies a potion effect
  • Field Details

  • Constructor Details

    • PermanentEffect

      public PermanentEffect(org.bukkit.potion.PotionEffectType effectType, int amplifier)
    • PermanentEffect

      public PermanentEffect(String name, String description, org.bukkit.ChatColor color, Trait.Type type, org.bukkit.potion.PotionEffectType effectType, int amplifier)
    • PermanentEffect

      public PermanentEffect(ItemIcon icon, Trait.Type type, org.bukkit.potion.PotionEffectType effectType, int amplifier)
    • PermanentEffect

      public PermanentEffect(ItemIcon icon, Trait.Type type, String effectType, Long amplifier)
  • Method Details

    • onTick

      protected void onTick(org.bukkit.entity.Player player)
      Description copied from class: RunnableSimpleTrait
      The method to run on each player every ten ticks
      Specified by:
      onTick in class RunnableSimpleTrait
      Parameters:
      player - The player to run the method on
    • onDisable

      protected void onDisable(org.bukkit.entity.Player player)
      Overrides:
      onDisable in class Trait