Class MEMORY_POTION

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

public final class MEMORY_POTION extends O2Potion
Memory Potion - enhances spell learning and experience gain.

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.

  • Constructor Details

    • MEMORY_POTION

      public MEMORY_POTION(@NotNull @NotNull Ollivanders2 plugin)
      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.

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