@Environment(value=CLIENT) public class AnimatedParticle extends SpriteBillboardParticle
Modifier and Type | Field and Description |
---|---|
private boolean |
changesColor |
private float |
resistance |
protected SpriteProvider |
spriteProvider |
private float |
targetColorBlue |
private float |
targetColorGreen |
private float |
targetColorRed |
private float |
upwardsAcceleration |
sprite
scale
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
Modifier | Constructor and Description |
---|---|
protected |
AnimatedParticle(ClientWorld world,
double x,
double y,
double z,
SpriteProvider spriteProvider,
float upwardsAcceleration) |
Modifier and Type | Method and Description |
---|---|
int |
getColorMultiplier(float tint) |
ParticleTextureSheet |
getType() |
void |
setColor(int rgbHex) |
protected void |
setResistance(float resistance) |
void |
setTargetColor(int rgbHex) |
void |
tick() |
getMaxU, getMaxV, getMinU, getMinV, setSprite, setSprite, setSpriteForAge
buildGeometry, getSize, scale
getBoundingBox, getMaxAge, isAlive, markDead, move, move, repositionFromBoundingBox, setBoundingBox, setBoundingBoxSpacing, setColor, setColorAlpha, setMaxAge, setPos, toString
protected final SpriteProvider spriteProvider
private final float upwardsAcceleration
private float resistance
private float targetColorRed
private float targetColorGreen
private float targetColorBlue
private boolean changesColor
protected AnimatedParticle(ClientWorld world, double x, double y, double z, SpriteProvider spriteProvider, float upwardsAcceleration)
public void setColor(int rgbHex)
public void setTargetColor(int rgbHex)
public ParticleTextureSheet getType()
public int getColorMultiplier(float tint)
getColorMultiplier
in class Particle
protected void setResistance(float resistance)