Package net.minecraft.client.particle
Class SingleQuadParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
- Direct Known Subclasses:
TextureSheetParticle
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.particle.Particle
Particle.LifetimeAlpha
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
SingleQuadParticle
(ClientLevel p_107665_, double p_107666_, double p_107667_, double p_107668_) protected
SingleQuadParticle
(ClientLevel p_107670_, double p_107671_, double p_107672_, double p_107673_, double p_107674_, double p_107675_, double p_107676_) -
Method Summary
Modifier and TypeMethodDescriptionfloat
getQuadSize
(float p_107681_) protected abstract float
getU0()
protected abstract float
getU1()
protected abstract float
getV0()
protected abstract float
getV1()
void
render
(VertexConsumer p_107678_, Camera p_107679_, float p_107680_) protected void
renderRotatedQuad
(VertexConsumer p_342045_, Camera p_344083_, org.joml.Quaternionf p_342719_, float p_343457_) protected void
renderRotatedQuad
(VertexConsumer p_345131_, org.joml.Quaternionf p_343948_, float p_344896_, float p_343625_, float p_342312_, float p_342822_) private void
renderVertex
(VertexConsumer p_343555_, org.joml.Quaternionf p_344882_, float p_343363_, float p_344803_, float p_345370_, float p_343670_, float p_345101_, float p_342842_, float p_342598_, float p_344326_, int p_345275_) scale
(float p_107683_) Methods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getLifetime, getLightColor, getParticleGroup, getPos, getRenderType, isAlive, move, remove, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, shouldCull, tick, toString
-
Field Details
-
quadSize
protected float quadSize
-
-
Constructor Details
-
SingleQuadParticle
protected SingleQuadParticle(ClientLevel p_107665_, double p_107666_, double p_107667_, double p_107668_) -
SingleQuadParticle
protected SingleQuadParticle(ClientLevel p_107670_, double p_107671_, double p_107672_, double p_107673_, double p_107674_, double p_107675_, double p_107676_)
-
-
Method Details
-
getFacingCameraMode
-
render
-
renderRotatedQuad
protected void renderRotatedQuad(VertexConsumer p_342045_, Camera p_344083_, org.joml.Quaternionf p_342719_, float p_343457_) -
renderRotatedQuad
protected void renderRotatedQuad(VertexConsumer p_345131_, org.joml.Quaternionf p_343948_, float p_344896_, float p_343625_, float p_342312_, float p_342822_) -
renderVertex
private void renderVertex(VertexConsumer p_343555_, org.joml.Quaternionf p_344882_, float p_343363_, float p_344803_, float p_345370_, float p_343670_, float p_345101_, float p_342842_, float p_342598_, float p_344326_, int p_345275_) -
getQuadSize
public float getQuadSize(float p_107681_) -
scale
-
getU0
protected abstract float getU0() -
getU1
protected abstract float getU1() -
getV0
protected abstract float getV0() -
getV1
protected abstract float getV1()
-