Class QuadParticleRenderState
java.lang.Object
net.minecraft.client.renderer.state.level.QuadParticleRenderState
- All Implemented Interfaces:
ParticleGroupRenderState
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprivate 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) voidbuildLayer(SingleQuadParticle.Layer layer, VertexConsumer bufferBuilder) voidclear()booleanisEmpty()layers()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() -
buildLayer
-
layers
-
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
-