Class REGENERATION
java.lang.Object
net.pottercraft.ollivanders2.effect.O2Effect
net.pottercraft.ollivanders2.effect.PotionEffectSuper
net.pottercraft.ollivanders2.effect.REGENERATION
REGENERATION effect - restores a player's health over time.
When applied to a player, this effect continuously restores their health over the duration of the effect. It is a beneficial potion effect that provides passive healing. The effect uses the Minecraft REGENERATION potion effect with strength level 1.
The effect displays "feels healthy" in informous and legilimency spell text, indicating the restorative nature of the effect.
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.effect.O2Effect
affectedPlayerText, duration, effectType, informousText, kill, legilimensText, p, permanent, targetID -
Constructor Summary
ConstructorsConstructorDescriptionREGENERATION(@NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull UUID pid) Constructor for REGENERATION 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
-
REGENERATION
public REGENERATION(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid) Constructor for REGENERATION effect.Initializes the effect with the specified duration and permanent flag. Sets up the effect type as REGENERATION, applies strength level 1, and configures the informous and legilimency spell text to "feels healthy".
- 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