A particle lib for Paper servers.
All features are contained in AsteorEffect.kt
, copy it into your project.
//Obtain an effect object
val effect = AsteorEffect.create(Particle.REDSTONE, location)
//Set properties
effect.count(10).offset(1.0).dustPotions(Color.AQUA)
//Show
effect.drawCircle(3.0, 24)
//Inline
AsteorEffect.create(Particle.REDSTONE, location).count(10).offset(1.0).dustOptions(Color.AQUA).drawCircle(3.0, 24)
- single
- circle
- line
- polygon
- star
- sphere
- vortex
- triangle
- parallelogram
- Convert
AsteorEffect.kt
to.java
file - Replace some math functions with Java Math functions.
- Put the result file in Java project.