Class FLAGRANTE_BURNING


public class FLAGRANTE_BURNING extends BURNING
Permanent burning effect inflicted by a flagrante-cursed item.

FLAGRANTE_BURNING is a specialized variant of the BURNING effect that is applied by cursed items bearing the Flagrante curse. Unlike regular burning effects which are temporary, flagrante burning is always permanent and cannot be modified via setPermanent(). The effect applies periodic fire damage at 3-second intervals with the same mechanisms as the parent BURNING class: damage clamping to 0.5-10, death prevention, and visual fire effects (smoke and hurt sound).

Differences from parent BURNING effect:

  • Always permanent - duration parameter is ignored
  • Applied by flagrante-cursed items (e.g., cursed gloves, cursed book)
  • Cannot be modified to temporary status via setPermanent()
  • Inherits all other burning mechanics from parent BURNING class
See Also:
  • Constructor Details

    • FLAGRANTE_BURNING

      public FLAGRANTE_BURNING(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid)
      Constructor for creating a permanent flagrante burning effect.

      Creates a permanent burning effect applied by a flagrante-cursed item. The duration parameter is accepted for API consistency with other effects but is ignored - flagrante burning is always permanent. All burning mechanics (damage calculation, visual effects, etc.) are inherited from the parent BURNING class and applied with permanent status.

      Parameters:
      plugin - a callback to the MC plugin
      duration - ignored - flagrante burning is always permanent
      isPermanent - ignored - flagrante burning is always permanent
      pid - the unique ID of the player affected by the cursed item
  • Method Details

    • setPermanent

      public void setPermanent(boolean perm)
      Override permanent status modification to prevent changing flagrante burning permanence.

      This method intentionally does nothing. Flagrante burning effects are always permanent and cannot be modified to temporary status. Any attempt to change the permanent flag is silently ignored to maintain the invariant that flagrante burning never expires.

      Overrides:
      setPermanent in class O2Effect
      Parameters:
      perm - ignored - flagrante burning is always permanent