Class ScreenParticleEngine2D

java.lang.Object
top.girlkisser.lazuli.api.client.particle2d.ScreenParticleEngine2D
All Implemented Interfaces:
IParticleEngine2D

public class ScreenParticleEngine2D extends Object implements IParticleEngine2D
A particle engine for Screens.
  • Field Details

    • INSTANCE

      public static final ScreenParticleEngine2D INSTANCE
      A default instance to use.
    • MAX_PARTICLES

      public static final int MAX_PARTICLES
      The maximum number of particles allowed at any given time.
      See Also:
    • particles

      protected List<InstancedParticle2D> particles
      The current list of particles.
    • particleQueue

      protected Queue<IParticle2D> particleQueue
      A queue of particles to add on the next frame.
  • Constructor Details

    • ScreenParticleEngine2D

      public ScreenParticleEngine2D()
      A particle engine for Screens.
  • Method Details

    • addParticle

      public void addParticle(IParticle2D particle)
      Description copied from interface: IParticleEngine2D
      Add the given particle to the engine.
      Specified by:
      addParticle in interface IParticleEngine2D
      Parameters:
      particle - The particle to add.
    • render

      public void render(net.minecraft.client.gui.GuiGraphics graphics, float partialTick)
      Description copied from interface: IParticleEngine2D
      Render all particles using the provided GuiGraphics.
      Specified by:
      render in interface IParticleEngine2D
      Parameters:
      graphics - The graphics to render using.
      partialTick - The game's partial tick.
    • clear

      public void clear()
      Description copied from interface: IParticleEngine2D
      Clear all particles from the engine.
      Specified by:
      clear in interface IParticleEngine2D