API Reference
ParticleMix.Builder
The ParticleMix object defines the visual behavior of an effect.
| Method | Type | Description |
|---|---|---|
setDelayTicks(long) | long | Frequency of particle spawning (in ticks). |
setCount(int) | int | Number of particles per cycle. |
setRadius(double) | double | Random spread radius around center. |
addParticle(Particle) | Particle | Adds a standard Bukkit particle. |
addRGBParticle(Color, float) | Color, float | Adds a colored particle with size. |
setMinPosition(x, y, z) | double | Sets the minimum bound for absolute spawning. |
setMaxPosition(x, y, z) | double | Sets the maximum bound for absolute spawning. |
API Methods
| Method | Description |
|---|---|
startEntityTask(Entity, Mix) | Starts a task where particles follow an entity. |
stopEntityTask(Entity) | Stops the specific entity's task. |
startLocationTask(Location, Mix) | Starts a task at a fixed world location. |
stopLocationTask(UUID) | Stops a location task using its ID. |
stopAllApiTasks() | Stops all active API-managed tasks. |
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
NoClassDefFoundError | Missing dependency | Add depend: [ParticlePlus] to plugin.yml |
NullPointerException | API not initialized | Check if ParticlePlus is installed and enabled |