Class ScreenParticleEngine2D
java.lang.Object
top.girlkisser.lazuli.api.client.particle2d.ScreenParticleEngine2D
- All Implemented Interfaces:
IParticleEngine2D
A particle engine for
Screens.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ScreenParticleEngine2DA default instance to use.static final intThe maximum number of particles allowed at any given time.protected Queue<IParticle2D> A queue of particles to add on the next frame.protected List<InstancedParticle2D> The current list of particles. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParticle(IParticle2D particle) Add the given particle to the engine.voidclear()Clear all particles from the engine.voidrender(net.minecraft.client.gui.GuiGraphics graphics, float partialTick) Render all particles using the providedGuiGraphics.
-
Field Details
-
INSTANCE
A default instance to use. -
MAX_PARTICLES
public static final int MAX_PARTICLESThe maximum number of particles allowed at any given time.- See Also:
-
particles
The current list of particles. -
particleQueue
A queue of particles to add on the next frame.
-
-
Constructor Details
-
ScreenParticleEngine2D
public ScreenParticleEngine2D()A particle engine forScreens.
-
-
Method Details
-
addParticle
Description copied from interface:IParticleEngine2DAdd the given particle to the engine.- Specified by:
addParticlein interfaceIParticleEngine2D- Parameters:
particle- The particle to add.
-
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, float partialTick) Description copied from interface:IParticleEngine2DRender all particles using the providedGuiGraphics.- Specified by:
renderin interfaceIParticleEngine2D- Parameters:
graphics- The graphics to render using.partialTick- The game's partial tick.
-
clear
public void clear()Description copied from interface:IParticleEngine2DClear all particles from the engine.- Specified by:
clearin interfaceIParticleEngine2D
-