Interface ParticleFactoryRegistry
public interface ParticleFactoryRegistry
Registry for adding particle factories on the client for
particle types created using FabricParticleTypes (or otherwise).
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A pending particle factory. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParticleFactoryRegistry
<T extends ParticleEffect>
voidregister
(ParticleType<T> type, ParticleFactoryRegistry.PendingParticleFactory<T> constructor) Registers a delayed factory for constructing particles of the given type.<T extends ParticleEffect>
voidregister
(ParticleType<T> type, ParticleFactory<T> factory) Registers a factory for constructing particles of the given type.
-
Method Details
-
getInstance
-
register
Registers a factory for constructing particles of the given type. -
register
<T extends ParticleEffect> void register(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.
-