API
API Reference

API Reference


ParticleMix.Builder

The ParticleMix object defines the visual behavior of an effect.

MethodTypeDescription
setDelayTicks(long)longFrequency of particle spawning (in ticks).
setCount(int)intNumber of particles per cycle.
setRadius(double)doubleRandom spread radius around center.
addParticle(Particle)ParticleAdds a standard Bukkit particle.
addRGBParticle(Color, float)Color, floatAdds a colored particle with size.
setMinPosition(x, y, z)doubleSets the minimum bound for absolute spawning.
setMaxPosition(x, y, z)doubleSets the maximum bound for absolute spawning.

API Methods

MethodDescription
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

IssueCauseSolution
NoClassDefFoundErrorMissing dependencyAdd depend: [ParticlePlus] to plugin.yml
NullPointerExceptionAPI not initializedCheck if ParticlePlus is installed and enabled