Class MEMORY_POTION
When consumed, this potion applies the FAST_LEARNING effect to the player, which doubles the experience gained from casting spells. This allows players to quickly improve their spell skills and expertise. The effect lasts for the default potion duration, providing a significant temporary boost to magical learning and development.
This potion is particularly useful for players looking to advance their spell casting abilities quickly and efficiently.
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.potion.O2Potion
duration, flavorText, ingredients, potionColor, potionSuccessMessage, potionType, text, usesModifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrink(@NotNull org.bukkit.entity.Player player) Drink the Memory Potion and gain temporary spell learning enhancement.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
-
MEMORY_POTION
Constructor for Memory Potion.Initializes the potion with its ingredients (Mandrake Leaf, Jobberknoll Feather, Galanthus Nivalis, Powdered Sage, and Standard Potion Ingredients), description text, and potion color. Sets up the FAST_LEARNING effect that will be applied when the potion is consumed to double spell experience gain.
- Parameters:
plugin- a callback to the plugin instance
-
-
Method Details
-
drink
public void drink(@NotNull @NotNull org.bukkit.entity.Player player) Drink the Memory Potion and gain temporary spell learning enhancement.Applies the FAST_LEARNING effect to the player. While this effect is active, all spell experience gained from casting spells is doubled, allowing for accelerated skill development and expertise growth. The effect remains active for the default potion duration, providing a temporary boost to magical learning.
-