Class SATIATION


public class SATIATION extends PotionEffectSuper
SATIATION effect - keeps a player's hunger bar full.

When applied to a player, this effect fills and maintains the player's hunger bar (food level), preventing starvation. It is a beneficial potion effect that provides continuous sustenance. The effect uses the Minecraft SATURATION potion effect with strength level 1.

The effect displays "feels full" in informous and legilimency spell text, indicating the satiation provided by this effect.

  • Constructor Details

    • SATIATION

      public SATIATION(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid)
      Constructor for SATIATION effect.

      Initializes the effect with the specified duration and permanent flag. Sets up the effect type as SATIATION, applies strength level 1, and configures the informous and legilimency spell text to "feels full".

      Parameters:
      plugin - the plugin instance
      duration - the duration of the effect in server ticks
      isPermanent - whether the effect should be permanent
      pid - the UUID of the player affected by this effect
  • Method Details

    • doRemove

      public void doRemove()
      Clean up the SATIATION effect when removed.

      Called when the effect is removed from a player. This effect has no special cleanup required beyond the standard effect removal handled by the parent class.

      Specified by:
      doRemove in class O2Effect