public interface ParticleFactoryRegistry
FabricParticleTypes
Modifier and Type | Interface and Description |
---|---|
static interface |
ParticleFactoryRegistry.PendingParticleFactory<T extends net.minecraft.particle.ParticleEffect>
A pending particle factory.
|
Modifier and Type | Method and Description |
---|---|
static ParticleFactoryRegistry |
getInstance() |
<T extends net.minecraft.particle.ParticleEffect> |
register(net.minecraft.particle.ParticleType<T> type,
net.minecraft.client.particle.ParticleFactory<T> factory)
Registers a factory for constructing particles of the given type.
|
<T extends net.minecraft.particle.ParticleEffect> |
register(net.minecraft.particle.ParticleType<T> type,
ParticleFactoryRegistry.PendingParticleFactory<T> constructor)
Registers a delayed factory for constructing particles of the given type.
|
static ParticleFactoryRegistry getInstance()
<T extends net.minecraft.particle.ParticleEffect> void register(net.minecraft.particle.ParticleType<T> type, net.minecraft.client.particle.ParticleFactory<T> factory)
<T extends net.minecraft.particle.ParticleEffect> void register(net.minecraft.particle.ParticleType<T> type, ParticleFactoryRegistry.PendingParticleFactory<T> constructor)
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.