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

    Constructors
    Constructor
    Description
    FlameParticleFactory(net.minecraft.client.particle.SpriteSet sprite)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface net.minecraft.client.particle.ParticleProvider<FlameParticleData>