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 fhi
intermediary net/minecraft/class_3940
named net/minecraft/client/particle/BillboardParticle
-
Field Summary
Fields 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
ModifierConstructorDescriptionprotected
BillboardParticle
(ClientWorld world, double x, double y, double z) protected
BillboardParticle
(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildGeometry
(VertexConsumer vertexConsumer, Camera camera, float tickDelta) Renders this particle to the givenVertexConsumer
buffer.protected abstract float
getMaxU()
Returns the upper U coordinate of the UV coordinates used to draw this particle.protected abstract float
getMaxV()
Returns the upper V coordinate of the UV coordinates used to draw this particle.protected abstract float
getMinU()
Returns the lower U coordinate of the UV coordinates used to draw this particle.protected abstract float
getMinV()
Returns the lower V coordinate of the UV coordinates used to draw this particle.float
getSize
(float tickDelta) Returns the draw scale of this particle, which is used while rendering inbuildGeometry(net.minecraft.client.render.VertexConsumer, net.minecraft.client.render.Camera, float)
.scale
(float scale) Scales the size of this particle by the givenscale
amount.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 D
Lfhi;D:F
intermediary field_17867
Lnet/minecraft/class_3940;field_17867:F
named scale
Lnet/minecraft/client/particle/BillboardParticle;scale:F
-
-
Constructor Details
-
BillboardParticle
- Mappings:
Namespace Name Mixin selector official <init>
Lfgv;<init>(Lfef;DDD)V
intermediary <init>
Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDD)V
named <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>
Lfgv;<init>(Lfef;DDDDDD)V
intermediary <init>
Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDDDDD)V
named <init>
Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDDDDD)V
-
-
Method Details
-
buildGeometry
Renders this particle to the givenVertexConsumer
buffer.- Specified by:
buildGeometry
in classParticle
- Parameters:
vertexConsumer
- the buffer to render tocamera
- the current active gameCamera
tickDelta
- frame tick delta amount- Mappings:
Namespace Name Mixin selector official a
Lfgv;a(Lehz;Leml;F)V
intermediary method_3074
Lnet/minecraft/class_703;method_3074(Lnet/minecraft/class_4588;Lnet/minecraft/class_4184;F)V
named buildGeometry
Lnet/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 inbuildGeometry(net.minecraft.client.render.VertexConsumer, net.minecraft.client.render.Camera, float)
.- 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 b
Lfhi;b(F)F
intermediary method_18132
Lnet/minecraft/class_3940;method_18132(F)F
named getSize
Lnet/minecraft/client/particle/BillboardParticle;getSize(F)F
-
scale
Scales the size of this particle by the givenscale
amount.- Overrides:
scale
in classParticle
- Parameters:
scale
- the amount to scale this particle's size by- Returns:
- this particle
- Mappings:
Namespace Name Mixin selector official d
Lfgv;d(F)Lfgv;
intermediary method_3087
Lnet/minecraft/class_703;method_3087(F)Lnet/minecraft/class_703;
named scale
Lnet/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.- Returns:
- the lower U coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official c
Lfhi;c()F
intermediary method_18133
Lnet/minecraft/class_3940;method_18133()F
named getMinU
Lnet/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.- Returns:
- the upper U coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official d
Lfhi;d()F
intermediary method_18134
Lnet/minecraft/class_3940;method_18134()F
named getMaxU
Lnet/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.- Returns:
- the lower V coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official e
Lfhi;e()F
intermediary method_18135
Lnet/minecraft/class_3940;method_18135()F
named getMinV
Lnet/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.- Returns:
- the upper V coordinate of the UV coordinates used to draw this particle
- Mappings:
Namespace Name Mixin selector official f
Lfhi;f()F
intermediary method_18136
Lnet/minecraft/class_3940;method_18136()F
named getMaxV
Lnet/minecraft/client/particle/BillboardParticle;getMaxV()F
-