register

void register<T extends ParticleEffect>(ParticleType<T> type, ParticleFactory<T> factory)

Registers a factory for constructing particles of the given type.

void register<T extends ParticleEffect>(ParticleType<T> type, ParticleFactoryRegistry.PendingParticleFactory<T> constructor)

Registers a delayed factory for constructing particles of the given type.

The factory method will be called with a sprite provider to use for that particle when it comes time.

Particle sprites will be loaded from domain:/particles/particle_name.json as per vanilla minecraft behaviour.