Class Particles

java.lang.Object
com.github.darksoulq.abyssallib.world.particle.Particles

public class Particles extends Object
A stateful controller for managing complex, animated particle effects.

This class handles asynchronous geometric calculations, spatial transformations, and thread-safe rendering synchronization. It utilizes a builder pattern for modular configuration of shapes, movement, and visual styles.

  • Method Details

    • start

      public void start()
      Initializes the particle effect and starts the asynchronous scheduler.

      If an effect is already running on this instance, it will be stopped before starting anew.

    • stop

      public void stop()
      Halts the effect, cancels the background task, and triggers the renderer's cleanup logic.
    • builder

      public static Particles.Builder builder()
      Returns:
      A new builder instance for configuring a particle effect.