Class AWAKE_ANTIDOTE_LESSER


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

AWAKE_ANTIDOTE_LESSER is a reduced-potency antidote to the AWAKE effect. As an antidote, it partially removes the awake state by reducing the remaining duration of any active AWAKE effect on the target player. With a strength of 0.25 (25%), this antidote is the weakest counter to the AWAKE effect, removing only 25% of the remaining duration.

Antidote Mechanism (inherited from O2EffectAntidoteSuper):

  • Targets O2EffectType.AWAKE specifically
  • Strength value 0.25 acts as a multiplier on the target effect's remaining duration
  • Duration reduced = AWAKE remaining duration × 0.25 (25% of remaining time removed)
  • If no AWAKE effect exists on the target, the antidote has no effect
  • Immediately removes the antidote effect itself after processing
See Also:
  • Constructor Details

    • AWAKE_ANTIDOTE_LESSER

      public AWAKE_ANTIDOTE_LESSER(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid)
      Constructor for creating a weak AWAKE antidote effect.

      Creates an antidote that targets the AWAKE 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 AWAKE 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