Class REGENERATION


public class REGENERATION extends PotionEffectSuper
REGENERATION effect - restores a player's health over time.

When applied to a player, this effect continuously restores their health over the duration of the effect. It is a beneficial potion effect that provides passive healing. The effect uses the Minecraft REGENERATION potion effect with strength level 1.

The effect displays "feels healthy" in informous and legilimency spell text, indicating the restorative nature of the effect.

  • Constructor Details

    • REGENERATION

      public REGENERATION(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid)
      Constructor for REGENERATION effect.

      Initializes the effect with the specified duration and permanent flag. Sets up the effect type as REGENERATION, applies strength level 1, and configures the informous and legilimency spell text to "feels healthy".

      Parameters:
      plugin - the plugin instance
      duration - the duration of the effect in server ticks
      isPermanent - whether the effect should be permanent
      pid - the UUID of the player affected by this effect
  • Method Details

    • doRemove

      public void doRemove()
      Clean up the REGENERATION effect when removed.

      Called when the effect is removed from a player. This effect has no special cleanup required beyond the standard effect removal handled by the parent class.

      Specified by:
      doRemove in class O2Effect