Class REGENERATION_POTION

java.lang.Object
net.pottercraft.ollivanders2.potion.O2Potion
net.pottercraft.ollivanders2.potion.REGENERATION_POTION

public final class REGENERATION_POTION extends O2Potion
Regeneration Potion - heals the drinker over time through magical regeneration.

When consumed, this potion applies the REGENERATION II effect to the player for the default potion duration. The Regeneration effect causes the player to slowly heal over time, restoring lost health points. This is a restorative potion useful for recovering from injuries sustained during combat or other dangerous activities.

The potion is crafted with components associated with life and resurrection, including bone, blood, rotten flesh, and salamander fire, reflecting its purpose of restoring life and vitality.

  • Constructor Details

    • REGENERATION_POTION

      public REGENERATION_POTION(@NotNull @NotNull Ollivanders2 plugin)
      Constructor for Regeneration Potion.

      Initializes the potion with its ingredients (Bone, Blood, Rotten Flesh, Salamander Fire, and Standard Potion Ingredients), description text, flavor text, potion color, and the Regeneration effect. Sets up the healing effect that will be applied when the potion is consumed.

      Parameters:
      plugin - a callback to the plugin instance
  • Method Details

    • drink

      public void drink(@NotNull @NotNull org.bukkit.entity.Player player)
      Drink the Regeneration Potion and gain health regeneration.

      Applies the REGENERATION effect to the player for the default potion duration. This effect causes the player's health to gradually restore over time. The regeneration effect is particularly useful for recovering health after combat, falls, or other damage-dealing events.

      Specified by:
      drink in class O2Potion
      Parameters:
      player - the player who drank the potion