Package net.minecraft.client.particle
Class AnimatedParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.BillboardParticle
net.minecraft.client.particle.SpriteBillboardParticle
net.minecraft.client.particle.AnimatedParticle
- Direct Known Subclasses:
EndRodParticle
,FireworksSparkParticle.Explosion
,SquidInkParticle
,TotemParticle
@Environment(CLIENT) public class AnimatedParticle extends SpriteBillboardParticle
-
Field Summary
Fields Modifier and Type Field Description private boolean
changesColor
private float
resistance
protected SpriteProvider
spriteProvider
private float
targetColorBlue
private float
targetColorGreen
private float
targetColorRed
private float
upwardsAcceleration
Fields inherited from class net.minecraft.client.particle.SpriteBillboardParticle
sprite
Fields inherited from class net.minecraft.client.particle.BillboardParticle
scale
Fields inherited from class net.minecraft.client.particle.Particle
age, angle, collidesWithWorld, colorAlpha, colorBlue, colorGreen, colorRed, dead, gravityStrength, maxAge, onGround, prevAngle, prevPosX, prevPosY, prevPosZ, random, spacingXZ, spacingY, velocityX, velocityY, velocityZ, world, x, y, z
-
Constructor Summary
Constructors Modifier Constructor Description protected
AnimatedParticle(ClientWorld world, double x, double y, double z, SpriteProvider spriteProvider, float upwardsAcceleration)
-
Method Summary
Modifier and Type Method Description int
getColorMultiplier(float tint)
ParticleTextureSheet
getType()
void
setColor(int rgbHex)
protected void
setResistance(float resistance)
void
setTargetColor(int rgbHex)
void
tick()
Methods inherited from class net.minecraft.client.particle.SpriteBillboardParticle
getMaxU, getMaxV, getMinU, getMinV, setSprite, setSprite, setSpriteForAge
Methods inherited from class net.minecraft.client.particle.BillboardParticle
buildGeometry, getSize, scale
Methods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getMaxAge, isAlive, markDead, move, move, repositionFromBoundingBox, setBoundingBox, setBoundingBoxSpacing, setColor, setColorAlpha, setMaxAge, setPos, toString
-
Field Details
-
spriteProvider
-
upwardsAcceleration
private final float upwardsAcceleration -
resistance
private float resistance -
targetColorRed
private float targetColorRed -
targetColorGreen
private float targetColorGreen -
targetColorBlue
private float targetColorBlue -
changesColor
private boolean changesColor
-
-
Constructor Details
-
AnimatedParticle
protected AnimatedParticle(ClientWorld world, double x, double y, double z, SpriteProvider spriteProvider, float upwardsAcceleration)
-
-
Method Details
-
setColor
public void setColor(int rgbHex) -
setTargetColor
public void setTargetColor(int rgbHex) -
getType
-
tick
public void tick() -
getColorMultiplier
public int getColorMultiplier(float tint)- Overrides:
getColorMultiplier
in classParticle
-
setResistance
protected void setResistance(float resistance)
-