Class FIRE_RESISTANCE


public class FIRE_RESISTANCE extends PotionEffectSuper
Fire Resistance effect that grants immunity to fire damage.

Applies the Minecraft fire resistance potion effect, making the player immune to fire and lava damage. This effect can be temporary or permanent depending on spell duration.

  • Constructor Details

    • FIRE_RESISTANCE

      public FIRE_RESISTANCE(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid)
      Constructor for Fire Resistance effect.
      Parameters:
      plugin - the Ollivanders2 plugin
      duration - the duration in ticks
      isPermanent - whether the effect is permanent
      pid - the player UUID
  • Method Details

    • doRemove

      public void doRemove()
      Cleanup when the effect is removed.

      Fire Resistance has no special cleanup needed beyond removing the potion effect.

      Specified by:
      doRemove in class O2Effect