Class BABBLING_ANTIDOTE_LESSER


public class BABBLING_ANTIDOTE_LESSER extends O2EffectAntidoteSuper
Partial antidote that weakly counteracts the BABBLING effect by reducing its duration.

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:
  • 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 logging
      duration - ignored - antidotes apply immediately and do not persist
      isPermanent - ignored - antidotes are immediately applied and resolved
      pid - the unique ID of the target player
  • Method Details

    • doRemove

      public void doRemove()
      Perform cleanup when the antidote effect is removed.

      The default implementation does nothing, as antidote effects have no state to clean up. The antidote's work is complete once it has reduced the target effect's duration.

      Specified by:
      doRemove in class O2Effect