Class BABBLING_BEVERAGE

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

public class BABBLING_BEVERAGE extends O2Potion
Babbling Beverage - a potion that causes the drinker to babble nonsense.

When consumed, this potion applies the BABBLING effect to the player, forcing them to speak randomly selected nonsense phrases for the duration of the effect. This is primarily a cosmetic/humorous effect with no mechanical disadvantage.

Since:
2.2.7
  • Constructor Details

    • BABBLING_BEVERAGE

      public BABBLING_BEVERAGE(@NotNull @NotNull Ollivanders2 plugin)
      Constructor for Babbling Beverage potion.

      Initializes the potion with its ingredients, description text, flavor text, and potion color. Sets up the recipe and all effects that will be applied when consumed.

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

    • drink

      public void drink(@NotNull @NotNull org.bukkit.entity.Player player)
      Drink the Babbling Beverage and apply the babbling effect.

      Applies the BABBLING effect to the player for the duration defined by the potion's duration field. The effect causes the player to speak random nonsense phrases at regular intervals while the effect is active.

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