public class HEAL extends PotionEffectSuper
Instant healing potion effect that restores the affected player's health.

HEAL applies Minecraft's INSTANT_HEALTH potion effect to restore health to the target player. Unlike effects that restore health over time, HEAL delivers its healing instantly when applied. The effect is powered by the Minecraft potion effect system with strength (amplifier) set to 1, determining the healing magnitude. The effect is detectable by mind-reading spells (Legilimens) which report the target "feels healthy".

See Also:
  • Constructor Details

    • HEAL

      public HEAL(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid)
      Constructor for creating an instant healing potion effect.

      Creates a potion effect that restores health to the target player using Minecraft's INSTANT_HEALTH potion effect type. The effect is detected by information spells as the target "feels healthy".

      Parameters:
      plugin - a callback to the MC plugin
      duration - the duration in ticks, snapped to min of 2 minutes, max of 5 minutes
      isPermanent - ignored - potion effects cannot be permanent
      pid - the unique ID of the player to heal
  • Method Details

    • doRemove

      public void doRemove()
      Perform cleanup when the instant healing effect is removed.

      The default implementation does nothing, as INSTANT_HEALTH is an instant potion effect with no persistent state to clean up. The healing is applied immediately when the effect is created, so no additional cleanup is required on removal.

      Specified by:
      doRemove in class O2Effect