Package net.minecraft.client.particle
Class BillboardParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.BillboardParticle
- Direct Known Subclasses:
SpriteBillboardParticle
A
Particle which renders a camera-facing sprite with a target texture scale.- Mappings:
Namespace Name named net/minecraft/client/particle/BillboardParticleintermediary net/minecraft/class_3940official gvf
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.particle.Particle
Particle.DynamicAlpha -
Field Summary
FieldsFields inherited from class net.minecraft.client.particle.Particle
age, alpha, angle, ascending, blue, collidesWithWorld, dead, gravityStrength, green, lastAngle, lastX, lastY, lastZ, maxAge, onGround, random, red, spacingXZ, spacingY, velocityMultiplier, velocityX, velocityY, velocityZ, world, x, y, z -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBillboardParticle(ClientWorld world, double x, double y, double z) protectedBillboardParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract floatgetMaxU()Returns the upper U coordinate of the UV coordinates used to draw this particle.protected abstract floatgetMaxV()Returns the upper V coordinate of the UV coordinates used to draw this particle.protected abstract floatgetMinU()Returns the lower U coordinate of the UV coordinates used to draw this particle.protected abstract floatgetMinV()Returns the lower V coordinate of the UV coordinates used to draw this particle.floatgetSize(float tickProgress) Returns the draw scale of this particle, which is used while rendering in.invalid reference
#buildGeometryvoidrender(VertexConsumer vertexConsumer, Camera camera, float tickProgress) Renders this particle to the givenVertexConsumerbuffer.protected voidrender(VertexConsumer vertexConsumer, Camera camera, Quaternionf quaternionf, float tickProgress) protected voidrender(VertexConsumer vertexConsumer, Quaternionf quaternionf, float x, float y, float z, float tickProgress) private voidrenderVertex(VertexConsumer vertexConsumer, Quaternionf quaternionf, float x, float y, float z, float float2, float float3, float size, float u, float v, int light) scale(float scale) Scales the size of this particle by the givenscaleamount.Methods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getBrightness, getGroup, getMaxAge, getType, isAlive, markDead, move, move, renderCustom, repositionFromBoundingBox, setAlpha, setBoundingBox, setBoundingBoxSpacing, setColor, setMaxAge, setPos, setVelocity, tick, toString
-
Field Details
-
scale
protected float scale- Mappings:
Namespace Name Mixin selector named scaleLnet/minecraft/client/particle/BillboardParticle;scale:Fintermediary field_17867Lnet/minecraft/class_3940;field_17867:Fofficial DLgvf;D:F
-
-
Constructor Details
-
BillboardParticle
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDD)Vintermediary <init>Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDD)Vofficial <init>Lgus;<init>(Lgrj;DDD)V
-
BillboardParticle
protected BillboardParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDDDDD)Vintermediary <init>Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDDDDD)Vofficial <init>Lgus;<init>(Lgrj;DDDDDD)V
-
-
Method Details
-
getRotator
- Mappings:
Namespace Name Mixin selector named getRotatorLnet/minecraft/client/particle/BillboardParticle;getRotator()Lnet/minecraft/client/particle/BillboardParticle$Rotator;intermediary method_55245Lnet/minecraft/class_3940;method_55245()Lnet/minecraft/class_3940$class_8981;official pLgvf;p()Lgvf$a;
-
render
Renders this particle to the givenVertexConsumerbuffer. Particles using theParticleTextureSheet.CUSTOMsheet should implement this with an empty method, and instead render inParticle.renderCustom(net.minecraft.client.util.math.MatrixStack, net.minecraft.client.render.VertexConsumerProvider, net.minecraft.client.render.Camera, float).- Specified by:
renderin classParticle- Parameters:
vertexConsumer- the buffer to render tocamera- the current active gameCamera- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/particle/Particle;render(Lnet/minecraft/client/render/VertexConsumer;Lnet/minecraft/client/render/Camera;F)Vintermediary method_3074Lnet/minecraft/class_703;method_3074(Lnet/minecraft/class_4588;Lnet/minecraft/class_4184;F)Vofficial aLgus;a(Lfof;Lftl;F)V
-
render
protected void render(VertexConsumer vertexConsumer, Camera camera, Quaternionf quaternionf, float tickProgress) - Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/particle/BillboardParticle;render(Lnet/minecraft/client/render/VertexConsumer;Lnet/minecraft/client/render/Camera;Lorg/joml/Quaternionf;F)Vintermediary method_60373Lnet/minecraft/class_3940;method_60373(Lnet/minecraft/class_4588;Lnet/minecraft/class_4184;Lorg/joml/Quaternionf;F)Vofficial aLgvf;a(Lfof;Lftl;Lorg/joml/Quaternionf;F)V
-
render
protected void render(VertexConsumer vertexConsumer, Quaternionf quaternionf, float x, float y, float z, float tickProgress) - Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/particle/BillboardParticle;render(Lnet/minecraft/client/render/VertexConsumer;Lorg/joml/Quaternionf;FFFF)Vintermediary method_60374Lnet/minecraft/class_3940;method_60374(Lnet/minecraft/class_4588;Lorg/joml/Quaternionf;FFFF)Vofficial aLgvf;a(Lfof;Lorg/joml/Quaternionf;FFFF)V
-
renderVertex
private void renderVertex(VertexConsumer vertexConsumer, Quaternionf quaternionf, float x, float y, float z, float float2, float float3, float size, float u, float v, int light) - Mappings:
Namespace Name Mixin selector named renderVertexLnet/minecraft/client/particle/BillboardParticle;renderVertex(Lnet/minecraft/client/render/VertexConsumer;Lorg/joml/Quaternionf;FFFFFFFFI)Vintermediary method_60375Lnet/minecraft/class_3940;method_60375(Lnet/minecraft/class_4588;Lorg/joml/Quaternionf;FFFFFFFFI)Vofficial aLgvf;a(Lfof;Lorg/joml/Quaternionf;FFFFFFFFI)V
-
getSize
public float getSize(float tickProgress) Returns the draw scale of this particle, which is used while rendering in.invalid reference
#buildGeometry- Returns:
- the draw scale of this particle, which is used while rendering in
invalid reference
#buildGeometry - Mappings:
Namespace Name Mixin selector named getSizeLnet/minecraft/client/particle/BillboardParticle;getSize(F)Fintermediary method_18132Lnet/minecraft/class_3940;method_18132(F)Fofficial bLgvf;b(F)F
-
scale
Scales the size of this particle by the givenscaleamount.- Overrides:
scalein classParticle- Parameters:
scale- the amount to scale this particle's size by- Returns:
- this particle
- Mappings:
Namespace Name Mixin selector named scaleLnet/minecraft/client/particle/Particle;scale(F)Lnet/minecraft/client/particle/Particle;intermediary method_3087Lnet/minecraft/class_703;method_3087(F)Lnet/minecraft/class_703;official dLgus;d(F)Lgus;
-
getMinU
protected abstract float getMinU()Returns the lower U coordinate of the UV coordinates used to draw this particle.- Returns:
- the lower U coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector named getMinULnet/minecraft/client/particle/BillboardParticle;getMinU()Fintermediary method_18133Lnet/minecraft/class_3940;method_18133()Fofficial cLgvf;c()F
-
getMaxU
protected abstract float getMaxU()Returns the upper U coordinate of the UV coordinates used to draw this particle.- Returns:
- the upper U coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector named getMaxULnet/minecraft/client/particle/BillboardParticle;getMaxU()Fintermediary method_18134Lnet/minecraft/class_3940;method_18134()Fofficial dLgvf;d()F
-
getMinV
protected abstract float getMinV()Returns the lower V coordinate of the UV coordinates used to draw this particle.- Returns:
- the lower V coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector named getMinVLnet/minecraft/client/particle/BillboardParticle;getMinV()Fintermediary method_18135Lnet/minecraft/class_3940;method_18135()Fofficial eLgvf;e()F
-
getMaxV
protected abstract float getMaxV()Returns the upper V coordinate of the UV coordinates used to draw this particle.- Returns:
- the upper V coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector named getMaxVLnet/minecraft/client/particle/BillboardParticle;getMaxV()Fintermediary method_18136Lnet/minecraft/class_3940;method_18136()Fofficial fLgvf;f()F
-