Class SHRINKING_SOLUTION

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

public class SHRINKING_SOLUTION extends O2Potion
Shrinking Solution - causes the drinker to shrink in size.

When consumed, this potion applies the SHRINKING effect to the player for 5 minutes, causing them to become smaller in physical size. The shrinking effect can impact movement, interaction with the world, and visibility. This potion is primarily a transformative effect useful for puzzle-solving, exploration, or roleplay scenarios.

The shrinking effect is temporary and will wear off after the duration expires, returning the player to their normal size.

  • Constructor Details

    • SHRINKING_SOLUTION

      public SHRINKING_SOLUTION(@NotNull @NotNull Ollivanders2 plugin)
      Constructor for Shrinking Solution potion.

      Initializes the potion with its ingredients (Standard Potion Ingredients), potion color, and the SHRINKING effect. Sets up the 5-minute duration for the shrinking 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 Shrinking Solution and become smaller in size.

      Applies the SHRINKING effect to the player for 5 minutes. This effect causes the player to physically shrink in size, which can affect their movement, interactions with the world, and visibility. The shrinking 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