Class BROOM_FLYING


public class BROOM_FLYING extends FLYING
Variant of the FLYING effect optimized for broom-based flight with permanent duration and no smoke effects.

BROOM_FLYING is a specialized flight effect that extends the base FLYING effect with modifications suitable for magical broom flight. Unlike regular FLYING effects, broom flight is always permanent and does not produce smoke particle effects, resulting in cleaner visual flight for broom-mounted players.

Differences from parent FLYING effect:

  • Always permanent - duration parameter is ignored
  • Smoke effects disabled (doSmokeEffect = false) for cleaner visuals
  • Suitable for persistent broom-based flight mechanics
See Also:
  • Constructor Details

    • BROOM_FLYING

      public BROOM_FLYING(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid)
      Constructor for creating a permanent broom flight effect.

      Creates a specialized flight effect optimized for broom-based flight. The duration parameter is accepted for API consistency with other effects but is ignored - broom flight is always permanent. Smoke particle effects are disabled to provide cleaner visuals during broom flight.

      Parameters:
      plugin - a callback to the MC plugin
      duration - ignored - broom flight is always permanent
      isPermanent - ignored - broom flight is always permanent
      pid - the unique ID of the player to give broom flight
  • Method Details

    • setPermanent

      public void setPermanent(boolean perm)
      Description copied from class: O2Effect
      Override default permanent setting for an effect.
      Overrides:
      setPermanent in class O2Effect
      Parameters:
      perm - true if this is permanent, false otherwise