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 ClassesNested classes/interfaces inherited from class net.minecraft.client.particle.Particle
Particle.LifetimeAlpha
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SingleQuadParticle
(ClientLevel pLevel, double pX, double pY, double pZ) protected
SingleQuadParticle
(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) -
Method Summary
Modifier and TypeMethodDescriptionfloat
getQuadSize
(float pScaleFactor) getRenderBoundingBox
(float partialTicks) Returns the bounding box that should be used for particle culling.protected abstract float
getU0()
protected abstract float
getU1()
protected abstract float
getV0()
protected abstract float
getV1()
void
render
(VertexConsumer pBuffer, Camera pRenderInfo, float pPartialTicks) protected void
renderRotatedQuad
(VertexConsumer p_345690_, Camera p_344809_, org.joml.Quaternionf p_344798_, float p_345099_) protected void
renderRotatedQuad
(VertexConsumer p_346432_, org.joml.Quaternionf p_345557_, float p_345634_, float p_345953_, float p_345531_, float p_346426_) private void
renderVertex
(VertexConsumer p_345983_, org.joml.Quaternionf p_345441_, float p_345563_, float p_345839_, float p_346305_, float p_345242_, float p_346207_, float p_344893_, float p_345909_, float p_345984_, int p_345037_) scale
(float pScale) 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, tick, toString
-
Field Details
-
quadSize
protected float quadSize
-
-
Constructor Details
-
SingleQuadParticle
-
SingleQuadParticle
protected SingleQuadParticle(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed)
-
-
Method Details
-
getFacingCameraMode
-
render
-
renderRotatedQuad
protected void renderRotatedQuad(VertexConsumer p_345690_, Camera p_344809_, org.joml.Quaternionf p_344798_, float p_345099_) -
renderRotatedQuad
protected void renderRotatedQuad(VertexConsumer p_346432_, org.joml.Quaternionf p_345557_, float p_345634_, float p_345953_, float p_345531_, float p_346426_) -
renderVertex
private void renderVertex(VertexConsumer p_345983_, org.joml.Quaternionf p_345441_, float p_345563_, float p_345839_, float p_346305_, float p_345242_, float p_346207_, float p_344893_, float p_345909_, float p_345984_, int p_345037_) -
getRenderBoundingBox
Description copied from class:Particle
Returns the bounding box that should be used for particle culling.AABB.INFINITE
can be returned for particles that should not be culled.- Overrides:
getRenderBoundingBox
in classParticle
-
getQuadSize
public float getQuadSize(float pScaleFactor) -
scale
-
getU0
protected abstract float getU0() -
getU1
protected abstract float getU1() -
getV0
protected abstract float getV0() -
getV1
protected abstract float getV1()
-