Class SATIATION_POTION

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

public class SATIATION_POTION extends O2Potion
Satiation Potion - restores food saturation and satisfies hunger.

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

    • SATIATION_POTION

      public SATIATION_POTION(@NotNull @NotNull Ollivanders2 plugin)
      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.

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