Class STRENGTH
java.lang.Object
net.pottercraft.ollivanders2.effect.O2Effect
net.pottercraft.ollivanders2.effect.PotionEffectSuper
net.pottercraft.ollivanders2.effect.STRENGTH
STRENGTH effect - increases a player's melee damage.
When applied to a player, this effect increases their melee damage output, making all physical attacks deal significantly more damage. It is a beneficial potion effect that provides a temporary combat boost. The effect uses the Minecraft STRENGTH potion effect with strength level 1.
The effect displays "feels strong" in informous and legilimency spell text, indicating the increased strength 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
ConstructorsConstructorDescriptionSTRENGTH(@NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull UUID pid) Constructor for STRENGTH 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
-
STRENGTH
public STRENGTH(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid) Constructor for STRENGTH effect.Initializes the effect with the specified duration and permanent flag. Sets up the effect type as STRENGTH, applies strength level 1, and configures the informous and legilimency spell text to "feels strong".
- 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