Class HUNGER_POTION

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

public class HUNGER_POTION extends O2Potion
Hunger Potion - causes severe hunger and exhaustion in the drinker.

When consumed, this potion applies the HUNGER effect (Hunger I) to the player for 3 minutes. The Hunger effect causes rapid food depletion, forcing the player to consume food frequently to avoid starvation. This is primarily a negative/debilitating potion effect useful for challenging gameplay scenarios.

The hunger effect reduces the player's food saturation and can lead to damage if not counteracted with food consumption during the effect duration.

Since:
2.21
  • Constructor Details

    • HUNGER_POTION

      public HUNGER_POTION(@NotNull @NotNull Ollivanders2 plugin)
      Constructor for Hunger Potion.

      Initializes the potion with its ingredients (Rotten Flesh, Ground Scarab Beetle, Crushed Fire Seeds, Crushed Gurdyroot, Infusion of Wormwood, and Standard Potion Ingredients), description text, potion color, and the Hunger I potion effect. Sets up the 3-minute duration for the hunger effect.

      Parameters:
      plugin - a callback to the plugin instance
  • Method Details

    • drink

      public void drink(@NotNull @NotNull org.bukkit.entity.Player player)
      Drink the Hunger Potion and suffer from the hunger effect.

      Applies the HUNGER effect (Hunger I) to the player for 3 minutes. This effect causes rapid food depletion and food bar exhaustion. The player will need to consume food frequently to avoid taking damage from starvation.

      Specified by:
      drink in class O2Potion
      Parameters:
      player - the player who drank the potion