Class Particles
java.lang.Object
com.github.darksoulq.abyssallib.world.particle.Particles
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Particles.Builderbuilder()voidstart()Initializes the particle effect and starts the asynchronous scheduler.voidstop()Halts the effect, cancels the background task, and triggers the renderer's cleanup logic.
-
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
- Returns:
- A new builder instance for configuring a particle effect.
-