Class FlameParticleFactory
java.lang.Object
com.pixelmonmod.pixelmon.client.particle.particles.flame.FlameParticleFactory
- All Implemented Interfaces:
net.minecraft.client.particle.ParticleProvider<FlameParticleData>
public class FlameParticleFactory
extends Object
implements net.minecraft.client.particle.ParticleProvider<FlameParticleData>
Based on TheGreyGhost's MinecraftByExample
On the client side:
When the client wants to spawn a Particle, it gives the FlameParticleData to this factory method
The factory selects an appropriate Particle class and instantiates it *
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.particle.ParticleProvider
net.minecraft.client.particle.ParticleProvider.Sprite<T extends net.minecraft.core.particles.ParticleOptions>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.particle.Particle
createParticle
(FlameParticleData flameParticleData, net.minecraft.client.multiplayer.ClientLevel world, double xPos, double yPos, double zPos, double xVelocity, double yVelocity, double zVelocity)
-
Constructor Details
-
FlameParticleFactory
public FlameParticleFactory(net.minecraft.client.particle.SpriteSet sprite)
-
-
Method Details
-
createParticle
@Nullable public net.minecraft.client.particle.Particle createParticle(FlameParticleData flameParticleData, net.minecraft.client.multiplayer.ClientLevel world, double xPos, double yPos, double zPos, double xVelocity, double yVelocity, double zVelocity) - Specified by:
createParticle
in interfacenet.minecraft.client.particle.ParticleProvider<FlameParticleData>
-