-
Notifications
You must be signed in to change notification settings - Fork 0
Particles
AniTexLib adds 5 brand new ParticleType:
- SPARK_LIKE_PARTICLE
- WISP_LIKE_PARTICLE
- WAVE_LIKE_PARTICLE
- CIRCLE_LIKE_PARTICLE
- CUBE_LIKE_PARTICLE
Spark, wisp and cube particle types use ColorableParticleOption
Circle and wave particle types accordingly use CircleParticleOption and WaveParticleOption
These particle options on its hand require following parameters to be pass for /particle command or in-code declaration:
ColorableParticleOption(String type, float redColor, float greenColor, float blueColor)
- note: type parameter accepts only sparkle, cube and default fallback to wisp
CircleParticleOption(float criticalAngle, float scale, float redColor, float greenColor, float blueColor)
- note: criticalAngle parameter is the value of angle that particle will be turned to
WaveParticleOption(float roll, float scale, float redColor, float greenColor, float blueColor)
- note: roll parameter is the value of angle that particle will be faced to
The basic Particle class to render model provided in json file
The inheritor of this class can modify position, rotation and scale by overriding setupTransformations() and provide texture to render by overriding getTexture()
Note: any created model that you suppose to be rendered on particle lifetime needs to declare ModelResourceLocation by registering additional model(see ParticleModelRegistry.getAllModelLocations() implementations)