Class HARM_ANTIDOTE_LESSER


public class HARM_ANTIDOTE_LESSER extends PotionEffectAntidoteSuper
Reduced-potency antidote to the HARM instant damage potion effect.

HARM_ANTIDOTE_LESSER is a partial antidote that counteracts the HARM instant damage potion effect with reduced potency. As an antidote with strength 0.25, it reduces the duration of any active HARM instant damage effects on the player by 25%. This allows for incomplete recovery from harm-based attacks, leaving some residual damage effect that requires additional healing or stronger antidotes to fully remove.

See Also:
  • Constructor Details

    • HARM_ANTIDOTE_LESSER

      public HARM_ANTIDOTE_LESSER(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid)
      Constructor for creating a reduced-potency harm antidote.

      Creates an antidote effect that reduces the duration of active HARM instant damage effects by 25% (strength 0.25). The duration parameter is accepted for API consistency with other effects but is not used by antidote effects.

      Parameters:
      plugin - a reference to the plugin for logging
      duration - ignored - antidotes apply immediately and are resolved
      isPermanent - is this effect permanent (does not age)
      pid - the unique ID of the player to treat with the antidote
  • Method Details

    • doRemove

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

      The default implementation does nothing, as antidote effects have no persistent state to clean up. When removed, the player's remaining HARM effect duration remains at its reduced value.

      Specified by:
      doRemove in class O2Effect