Class CURE_FOR_BOILS

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

public class CURE_FOR_BOILS extends O2Potion
Cure for Boils - a potion that provides instant healing to cure boils and other conditions.

This potion cures boils and similar skin conditions, even those produced by the Pimple Jinx curse. When consumed, it applies an Instant Health I effect (restores health) and is marked with a blue color to indicate its healing properties. Despite being called a "cure" for boils, it functions as a general healing potion.

Reference: Harry Potter Potions, used to cure boils caused by spells and other sources.

Since:
2.2.8
  • Constructor Details

    • CURE_FOR_BOILS

      public CURE_FOR_BOILS(@NotNull @NotNull Ollivanders2 plugin)
      Constructor for Cure for Boils potion.

      Initializes the potion with its ingredients (Ground Snake Fangs, Dried Nettles, Ground Porcupine Quills, Horned Slug Mucus, and Standard Potion Ingredients), description text, flavor text, and the Instant Health I potion effect. Sets up the recipe and 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 Cure for Boils potion and receive healing.

      Applies the HEAL effect to the player for the default potion duration. This effect restores the player's health, curing boils and other skin conditions. The healing is instant and allows the player to recover from damage or ailments caused by curses like the Pimple Jinx. The potion displays a success message to confirm the healing has taken effect.

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