Class REGENERATION_POTION
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.
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.potion.O2Potion
duration, flavorText, ingredients, potionColor, potionSuccessMessage, potionType, text, usesModifier -
Constructor Summary
ConstructorsConstructorDescriptionREGENERATION_POTION(@NotNull Ollivanders2 plugin) Constructor for Regeneration Potion. -
Method Summary
Modifier and TypeMethodDescriptionvoiddrink(@NotNull org.bukkit.entity.Player player) Drink the Regeneration Potion and gain health regeneration.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
-
REGENERATION_POTION
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.
-