Class FLAGRANTE_BURNING
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:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.effect.O2Effect
affectedPlayerText, duration, effectType, informousText, kill, legilimensText, p, permanent, targetID -
Constructor Summary
ConstructorsConstructorDescriptionFLAGRANTE_BURNING(@NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull UUID pid) Constructor for creating a permanent flagrante burning effect. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetPermanent(boolean perm) Override permanent status modification to prevent changing flagrante burning permanence.Methods inherited from class net.pottercraft.ollivanders2.effect.BURNING
addDamage, checkEffect, doRemove, getDamage, removeDamageMethods inherited from class net.pottercraft.ollivanders2.effect.O2Effect
age, getAffectedPlayerText, getInformousText, getLegilimensText, getMaxDuration, getMinDuration, getRemainingDuration, getTargetID, isKilled, isPermanent, kill
-
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 pluginduration- ignored - flagrante burning is always permanentisPermanent- ignored - flagrante burning is always permanentpid- 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:
setPermanentin classO2Effect- Parameters:
perm- ignored - flagrante burning is always permanent
-