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 official falintermediary net/minecraft/class_3940named net/minecraft/client/particle/BillboardParticle
-
Field Summary
FieldsFields inherited from class net.minecraft.client.particle.Particle
age, alpha, angle, blue, collidesWithWorld, dead, field_28787, gravityStrength, green, maxAge, onGround, prevAngle, prevPosX, prevPosY, prevPosZ, 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 TypeMethodDescriptionvoidbuildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) Renders thisParticleto the givenVertexConsumerbuffer.protected abstract floatgetMaxU()protected abstract floatgetMaxV()protected abstract floatgetMinU()protected abstract floatgetMinV()floatgetSize(float tickDelta) 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, repositionFromBoundingBox, setAlpha, setBoundingBox, setBoundingBoxSpacing, setColor, setMaxAge, setPos, setVelocity, tick, toString
-
Field Details
-
scale
protected float scale- Mappings:
Namespace Name Mixin selector official DLfal;D:Fintermediary field_17867Lnet/minecraft/class_3940;field_17867:Fnamed scaleLnet/minecraft/client/particle/BillboardParticle;scale:F
-
-
Constructor Details
-
BillboardParticle
- Mappings:
Namespace Name Mixin selector official <init>Lezy;<init>(Lexk;DDD)Vintermediary <init>Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDD)Vnamed <init>Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDD)V
-
BillboardParticle
protected BillboardParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) - Mappings:
Namespace Name Mixin selector official <init>Lezy;<init>(Lexk;DDDDDD)Vintermediary <init>Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDDDDD)Vnamed <init>Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDDDDD)V
-
-
Method Details
-
buildGeometry
Renders thisParticleto the givenVertexConsumerbuffer.- Specified by:
buildGeometryin classParticle- Parameters:
vertexConsumer- the buffer to render tocamera- the current active gameCameratickDelta- frame tick delta amount- Mappings:
Namespace Name Mixin selector official aLezy;a(Ledh;Lehs;F)Vintermediary method_3074Lnet/minecraft/class_703;method_3074(Lnet/minecraft/class_4588;Lnet/minecraft/class_4184;F)Vnamed buildGeometryLnet/minecraft/client/particle/Particle;buildGeometry(Lnet/minecraft/client/render/VertexConsumer;Lnet/minecraft/client/render/Camera;F)V
-
getSize
public float getSize(float tickDelta) - Returns:
- the draw scale of this particle, which is used while rendering in
buildGeometry(net.minecraft.client.render.VertexConsumer, net.minecraft.client.render.Camera, float) - Mappings:
Namespace Name Mixin selector official bLfal;b(F)Fintermediary method_18132Lnet/minecraft/class_3940;method_18132(F)Fnamed getSizeLnet/minecraft/client/particle/BillboardParticle;getSize(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 official dLezy;d(F)Lezy;intermediary method_3087Lnet/minecraft/class_703;method_3087(F)Lnet/minecraft/class_703;named scaleLnet/minecraft/client/particle/Particle;scale(F)Lnet/minecraft/client/particle/Particle;
-
getMinU
protected abstract float getMinU()- Returns:
- the lower U coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official cLfal;c()Fintermediary method_18133Lnet/minecraft/class_3940;method_18133()Fnamed getMinULnet/minecraft/client/particle/BillboardParticle;getMinU()F
-
getMaxU
protected abstract float getMaxU()- Returns:
- the upper U coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official dLfal;d()Fintermediary method_18134Lnet/minecraft/class_3940;method_18134()Fnamed getMaxULnet/minecraft/client/particle/BillboardParticle;getMaxU()F
-
getMinV
protected abstract float getMinV()- Returns:
- the lower V coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official eLfal;e()Fintermediary method_18135Lnet/minecraft/class_3940;method_18135()Fnamed getMinVLnet/minecraft/client/particle/BillboardParticle;getMinV()F
-
getMaxV
protected abstract float getMaxV()- Returns:
- the upper V coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official fLfal;f()Fintermediary method_18136Lnet/minecraft/class_3940;method_18136()Fnamed getMaxVLnet/minecraft/client/particle/BillboardParticle;getMaxV()F
-