Class QuadParticleRenderState
java.lang.Object
net.minecraft.client.renderer.state.QuadParticleRenderState
- All Implemented Interfaces:
ParticleGroupRenderState, SubmitNodeCollector.ParticleGroupRenderer
public class QuadParticleRenderState
extends Object
implements ParticleGroupRenderState, SubmitNodeCollector.ParticleGroupRenderer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final recordstatic final recordprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate intprivate final Map<SingleQuadParticle.Layer, QuadParticleRenderState.Storage> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SingleQuadParticle.Layer layer, float x, float y, float z, float xRot, float yRot, float zRot, float wRot, float scale, float u0, float u1, float v0, float v1, int color, int lightCoords) voidclear()booleanisEmpty()@Nullable QuadParticleRenderState.PreparedBuffersprepare(ParticleFeatureRenderer.ParticleBufferCache cachedBuffer, boolean translucent) voidrender(QuadParticleRenderState.PreparedBuffers preparedBuffers, ParticleFeatureRenderer.ParticleBufferCache bufferCache, RenderPass renderPass, TextureManager textureManager) protected voidrenderRotatedQuad(VertexConsumer builder, float x, float y, float z, float xRot, float yRot, float zRot, float wRot, float scale, float u0, float u1, float v0, float v1, int color, int lightCoords) private voidrenderVertex(VertexConsumer builder, Quaternionf rotation, float x, float y, float z, float nx, float ny, float scale, float u, float v, int color, int lightCoords) voidsubmit(SubmitNodeCollector submitNodeCollector, CameraRenderState camera)
-
Field Details
-
INITIAL_PARTICLE_CAPACITY
private static final int INITIAL_PARTICLE_CAPACITY- See Also:
-
FLOATS_PER_PARTICLE
private static final int FLOATS_PER_PARTICLE- See Also:
-
INTS_PER_PARTICLE
private static final int INTS_PER_PARTICLE- See Also:
-
particles
-
particleCount
private int particleCount
-
-
Constructor Details
-
QuadParticleRenderState
public QuadParticleRenderState()
-
-
Method Details
-
add
public void add(SingleQuadParticle.Layer layer, float x, float y, float z, float xRot, float yRot, float zRot, float wRot, float scale, float u0, float u1, float v0, float v1, int color, int lightCoords) -
clear
public void clear()- Specified by:
clearin interfaceParticleGroupRenderState
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceSubmitNodeCollector.ParticleGroupRenderer
-
prepare
public @Nullable QuadParticleRenderState.PreparedBuffers prepare(ParticleFeatureRenderer.ParticleBufferCache cachedBuffer, boolean translucent) - Specified by:
preparein interfaceSubmitNodeCollector.ParticleGroupRenderer
-
render
public void render(QuadParticleRenderState.PreparedBuffers preparedBuffers, ParticleFeatureRenderer.ParticleBufferCache bufferCache, RenderPass renderPass, TextureManager textureManager) - Specified by:
renderin interfaceSubmitNodeCollector.ParticleGroupRenderer
-
renderRotatedQuad
protected void renderRotatedQuad(VertexConsumer builder, float x, float y, float z, float xRot, float yRot, float zRot, float wRot, float scale, float u0, float u1, float v0, float v1, int color, int lightCoords) -
renderVertex
private void renderVertex(VertexConsumer builder, Quaternionf rotation, float x, float y, float z, float nx, float ny, float scale, float u, float v, int color, int lightCoords) -
submit
- Specified by:
submitin interfaceParticleGroupRenderState
-