Class SATIATION_POTION
When consumed, this potion applies the SATIATION effect to the player for 5 minutes. The Satiation effect restores the player's food saturation level without consuming actual food, allowing them to go longer between meals. This is particularly useful for survival scenarios or extended activities where food is limited.
Unlike eating food, saturation effects prevent hunger decay and provide nourishment without requiring food items. The saturation from this potion works in tandem with the food bar to prevent health loss from starvation.
- Since:
- 2.21
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.potion.O2Potion
duration, flavorText, ingredients, potionColor, potionSuccessMessage, potionType, text, usesModifier -
Constructor Summary
ConstructorsConstructorDescriptionSATIATION_POTION(@NotNull Ollivanders2 plugin) Constructor for Satiation Potion. -
Method Summary
Modifier and TypeMethodDescriptionvoiddrink(@NotNull org.bukkit.entity.Player player) Drink the Satiation Potion and restore food saturation.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
-
SATIATION_POTION
Constructor for Satiation Potion.Initializes the potion with its ingredients (Chopped Mallow Leaves, Knotgrass, Honeywater, and Standard Potion Ingredients), description text, potion color, and the Saturation I potion effect. Sets up the 5-minute duration for the saturation effect.
- Parameters:
plugin- a callback to the plugin instance
-
-
Method Details
-
drink
public void drink(@NotNull @NotNull org.bukkit.entity.Player player) Drink the Satiation Potion and restore food saturation.Applies the Satiation effect to the player for 5 minutes. This effect restores and maintains the player's food saturation level, preventing hunger decay and starvation damage. The player will feel completely satisfied and nourished while the effect is active, allowing them to focus on other tasks without worrying about hunger.
-