Class DRAUGHT_OF_LIVING_DEATH

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

public class DRAUGHT_OF_LIVING_DEATH extends O2Potion
Draught of Living Death - an extremely powerful sleeping potion that induces permanent magical sleep.

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
  • Constructor Details

    • DRAUGHT_OF_LIVING_DEATH

      public DRAUGHT_OF_LIVING_DEATH(@NotNull @NotNull Ollivanders2 plugin)
      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
      Specified by:
      drink in class O2Potion
      Parameters:
      player - the player who drank the potion
    • getAwakeEffectMessage

      public String 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.")