Class SATIATION
java.lang.Object
net.pottercraft.ollivanders2.effect.O2Effect
net.pottercraft.ollivanders2.effect.PotionEffectSuper
net.pottercraft.ollivanders2.effect.SATIATION
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.
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.effect.O2Effect
affectedPlayerText, duration, effectType, informousText, kill, legilimensText, p, permanent, targetID -
Constructor Summary
ConstructorsConstructorDescriptionSATIATION(@NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull UUID pid) Constructor for SATIATION effect. -
Method Summary
Methods inherited from class net.pottercraft.ollivanders2.effect.PotionEffectSuper
checkEffect, getPotionEffectType, getStrength, setPermanent, setStrengthMethods inherited from class net.pottercraft.ollivanders2.effect.O2Effect
age, getAffectedPlayerText, getInformousText, getLegilimensText, getMaxDuration, getMinDuration, getRemainingDuration, getTargetID, isKilled, isPermanent, kill
-
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 instanceduration- the duration of the effect in server ticksisPermanent- whether the effect should be permanentpid- the UUID of the player affected by this effect
-
-
Method Details