Class SWELLING_SOLUTION

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

public class SWELLING_SOLUTION extends O2Potion
Swelling Solution - causes the drinker to grow in size.

When consumed, this potion applies the SWELLING effect to the player for 5 minutes, causing them to become larger in physical size. The swelling effect can impact movement, interactions with the world, and overall gameplay mechanics. Players affected by this potion will experience difficulty navigating tight spaces and may have altered physics.

The swelling effect is temporary and will wear off after the duration expires, returning the player to their normal size. This potion is primarily a transformative or debilitating effect useful for puzzle-solving, exploration challenges, or roleplay scenarios.

See Also:
  • Constructor Details

    • SWELLING_SOLUTION

      public SWELLING_SOLUTION(@NotNull @NotNull Ollivanders2 plugin)
      Constructor for Swelling Solution potion.

      Initializes the potion with its ingredients (Dried Nettles, Pufferfish Eye, Bat Spleen, and Standard Potion Ingredients), description text, flavor text, and potion color. Sets up the SWELLING effect that will be applied when the potion is consumed for 5 minutes.

      Parameters:
      plugin - a callback to the plugin instance
  • Method Details

    • drink

      public void drink(@NotNull @NotNull org.bukkit.entity.Player player)
      Drink the Swelling Solution and grow in size.

      Applies the SWELLING effect to the player for 5 minutes. This effect causes the player to physically grow in size, which can affect their movement, interactions with the world, and overall gameplay mechanics. The player will experience difficulty navigating tight spaces and may encounter altered physics while swollen. The swelling effect is temporary and will wear off after the duration expires.

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