Class CURE_FOR_BOILS
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
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.potion.O2Potion
duration, flavorText, ingredients, potionColor, potionSuccessMessage, potionType, text, usesModifier -
Constructor Summary
ConstructorsConstructorDescriptionCURE_FOR_BOILS(@NotNull Ollivanders2 plugin) Constructor for Cure for Boils potion. -
Method Summary
Modifier and TypeMethodDescriptionvoiddrink(@NotNull org.bukkit.entity.Player player) Drink the Cure for Boils potion and receive healing.Methods inherited from class net.pottercraft.ollivanders2.potion.O2Potion
brew, brewBadPotion, checkRecipe, createPotionItemStack, getFlavorText, getIngredients, getIngredientsText, getLevel, getMagicBranch, getName, getPotionSuccessMessage, getPotionType, getText, setUsesModifier
-
Constructor Details
-
CURE_FOR_BOILS
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.
-