Class WIDEYE_POTION
When consumed, this potion applies the AWAKE effect to the player, preventing them from being put to sleep by sleep-inducing potions such as the Sleeping Draught or Draught of Living Death. While the AWAKE effect is active, the player is immune to all sleep-related magical effects and cannot be forced into sleep.
This potion serves as a critical counter to sleeping potions and is essential for survival in situations where sleep effects might be used as an attack or punishment. Players with the AWAKE effect remain fully conscious and able to act.
- 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
ConstructorsConstructorDescriptionWIDEYE_POTION(@NotNull Ollivanders2 plugin) Constructor for Wideye Potion (Awakening Potion). -
Method Summary
Modifier and TypeMethodDescriptionvoiddrink(@NotNull org.bukkit.entity.Player player) Drink the Wideye Potion and become immune to sleep effects.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
-
WIDEYE_POTION
Constructor for Wideye Potion (Awakening Potion).Initializes the potion with its ingredients (Ground Snake Fangs, Billywig Sting Slime, Wolfsbane, and Standard Potion Ingredients), description text, and potion color. Sets up the AWAKE effect that will be applied when the potion is consumed to grant sleep immunity.
- Parameters:
plugin- a callback to the plugin instance
-
-
Method Details
-
drink
public void drink(@NotNull @NotNull org.bukkit.entity.Player player) Drink the Wideye Potion and become immune to sleep effects.Applies the AWAKE effect to the player for the default potion duration. While this effect is active, the player is completely immune to all sleep-inducing potions and effects, including the Sleeping Draught and Draught of Living Death. The AWAKE effect is a critical defensive tool for countering sleep-based attacks and protecting against magical incapacitation.
-