Class DRAUGHT_OF_LIVING_DEATH
This is one of the most dangerous potions in existence. When consumed, it puts the drinker into a permanent magical sleep (SLEEPING effect). The sleep can only be broken by a player who has the AWAKE effect active, which will render the potion's effects harmless.
This potion requires a complex recipe with rare ingredients including Powdered Asphodel Root and Infusion of Wormwood, making it a high-level potion to brew. It should be handled with extreme caution.
- 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
ConstructorsConstructorDescriptionDRAUGHT_OF_LIVING_DEATH(@NotNull Ollivanders2 plugin) Constructor for Draught of Living Death potion. -
Method Summary
Modifier and TypeMethodDescriptionvoiddrink(@NotNull org.bukkit.entity.Player player) Drink the Draught of Living Death and enter permanent magical sleep.Get the message shown to players with the AWAKE effect when drinking this potion.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
-
DRAUGHT_OF_LIVING_DEATH
Constructor for Draught of Living Death potion.Initializes the potion with its complex recipe of rare ingredients (Powdered Asphodel Root, Infusion of Wormwood, Valerian Root, Sopophorus Bean Juice, Sloth Brain, and Standard Potion Ingredients), description text, flavor text, and potion color. Sets up the permanent SLEEPING 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 Draught of Living Death and enter permanent magical sleep.The effect of this potion depends on whether the player has the AWAKE effect active:
- If the player has the AWAKE effect, the potion is harmless and the player returns to normal consciousness with a brief yawn
- If the player does not have the AWAKE effect, they are put into permanent magical sleep (SLEEPING effect). The only way to break this sleep is for another player with the AWAKE effect to use a counter-potion or spell
-
getAwakeEffectMessage
Get the message shown to players with the AWAKE effect when drinking this potion.Returns the special message that is displayed to players who have the AWAKE effect active when they drink the Draught of Living Death. This message indicates that the potion's sleep effect is harmless to them due to their immunity to sleep.
- Returns:
- the message displayed to awakened players ("You yawn, close your eyes for a moment, then feel fine.")
-