Class BABBLING_ANTIDOTE_LESSER
BABBLING_ANTIDOTE_LESSER is a reduced-potency antidote to the BABBLING effect. As an antidote,
it partially removes the babbling condition by reducing the remaining duration of any active BABBLING effect
on the target player. With a strength of 0.25 (25%), this antidote is the weakest counter to the
BABBLING effect, removing only 25% of the remaining duration.
Antidote Mechanism (inherited from O2EffectAntidoteSuper):
- Targets O2EffectType.BABBLING specifically
- Strength value 0.25 acts as a multiplier on the target effect's remaining duration
- Duration reduced = BABBLING remaining duration × 0.25 (25% of remaining time removed)
- If no BABBLING effect exists on the target, the antidote has no effect
- Immediately removes the antidote effect itself after processing
- See Also:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.effect.O2Effect
affectedPlayerText, duration, effectType, informousText, kill, legilimensText, p, permanent, targetID -
Constructor Summary
ConstructorsConstructorDescriptionBABBLING_ANTIDOTE_LESSER(@NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull UUID pid) Constructor for creating a weak BABBLING antidote effect. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoRemove()Perform cleanup when the antidote effect is removed.Methods inherited from class net.pottercraft.ollivanders2.effect.O2EffectAntidoteSuper
checkEffect, getStrength, setPermanentMethods inherited from class net.pottercraft.ollivanders2.effect.O2Effect
age, getAffectedPlayerText, getInformousText, getLegilimensText, getMaxDuration, getMinDuration, getRemainingDuration, getTargetID, isKilled, isPermanent, kill
-
Constructor Details
-
BABBLING_ANTIDOTE_LESSER
public BABBLING_ANTIDOTE_LESSER(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid) Constructor for creating a weak BABBLING antidote effect.Creates an antidote that targets the BABBLING effect with reduced potency (strength 0.25). The duration parameter is accepted for API consistency with other effects but is not used for antidote processing. The antidote immediately processes and removes itself after applying its effect to any active BABBLING effect on the target.
- Parameters:
plugin- a reference to the plugin for loggingduration- ignored - antidotes apply immediately and do not persistisPermanent- ignored - antidotes are immediately applied and resolvedpid- the unique ID of the target player
-
-
Method Details