Class HUNGER_POTION
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
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.potion.O2Potion
duration, flavorText, ingredients, potionColor, potionSuccessMessage, potionType, text, usesModifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrink(@NotNull org.bukkit.entity.Player player) Drink the Hunger Potion and suffer from the hunger effect.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
-
HUNGER_POTION
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.
-