Class BABBLING_BEVERAGE
java.lang.Object
net.pottercraft.ollivanders2.potion.O2Potion
net.pottercraft.ollivanders2.potion.BABBLING_BEVERAGE
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
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.potion.O2Potion
duration, flavorText, ingredients, potionColor, potionSuccessMessage, potionType, text, usesModifier -
Constructor Summary
ConstructorsConstructorDescriptionBABBLING_BEVERAGE(@NotNull Ollivanders2 plugin) Constructor for Babbling Beverage potion. -
Method Summary
Modifier and TypeMethodDescriptionvoiddrink(@NotNull org.bukkit.entity.Player player) Drink the Babbling Beverage and apply the babbling effect.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
-
BABBLING_BEVERAGE
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.
-