Class WIGGENWELD_POTION
This splash potion is a critical tool for reversing sleep effects. When thrown, it removes the SLEEPING effect from all affected players, instantly awakening them from magically-induced sleep such as that caused by the Sleeping Draught or Draught of Living Death. The potion provides both healing through an Instant Health effect and awakening functionality.
As a splash potion, the Wiggenweld Potion is thrown rather than consumed directly. The healing effect affects all entities in the splash radius, while the awakening effect specifically targets and wakes sleeping players. This makes it an essential potion for countering sleep-based attacks and rescuing incapacitated allies.
The complex recipe with many rare ingredients reflects the potion's powerful dual-purpose effects.
- Since:
- 2.2.8
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.potion.O2Potion
duration, flavorText, ingredients, potionColor, potionSuccessMessage, potionType, text, usesModifier -
Constructor Summary
ConstructorsConstructorDescriptionWIGGENWELD_POTION(@NotNull Ollivanders2 plugin) Constructor for Wiggenweld Potion. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoOnPotionSplashEvent(@NotNull org.bukkit.event.entity.PotionSplashEvent event) Handle the splash potion event and awaken sleeping players.voiddrink(@NotNull org.bukkit.entity.Player player) Drink the Wiggenweld Potion - no effect when consumed directly.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
-
WIGGENWELD_POTION
Constructor for Wiggenweld Potion.Initializes the splash potion with its complex recipe of many rare ingredients (Horklump Juice, Flobberworm Mucus, Chizpurfle Fangs, Billywig Sting Slime, Mint Sprig, Boom Berry Juice, Mandrake Leaf, Honeywater, Sloth Brain Mucus, Moondew Drop, Salamander Blood, Lionfish Spines, Unicorn Horn, Wolfsbane, and Standard Potion Ingredients), description text, flavor text, potion color, and the Instant Health effect. Sets up the dual awakening and healing functionality of this powerful potion.
- Parameters:
plugin- a callback to the plugin instance
-
-
Method Details
-
drink
public void drink(@NotNull @NotNull org.bukkit.entity.Player player) Drink the Wiggenweld Potion - no effect when consumed directly.This is a splash potion intended to be thrown, not consumed. Drinking it has no special effect. The potion's primary functionality is triggered through the splash event when thrown, which removes the SLEEPING effect from affected players and applies the healing effect.
-
doOnPotionSplashEvent
public void doOnPotionSplashEvent(@NotNull @NotNull org.bukkit.event.entity.PotionSplashEvent event) Handle the splash potion event and awaken sleeping players.When the Wiggenweld Potion splashes, it removes the SLEEPING effect from all affected players in the splash radius. This instantly wakes any players who are magically asleep due to the Sleeping Draught, Draught of Living Death, or other sleep-inducing effects. The potion's healing effect (Instant Health II) is automatically applied through the standard Minecraft potion system.
- Specified by:
doOnPotionSplashEventin classO2SplashPotion- Parameters:
event- the splash potion event containing affected entities and splash location
-