@Environment(value=CLIENT) public static class FireworksSparkParticle.FireworkParticle extends NoRenderParticle
Modifier and Type | Field and Description |
---|---|
private int |
age |
private ListTag |
explosions |
private boolean |
flicker |
private ParticleManager |
particleManager |
Constructor and Description |
---|
FireworkParticle(ClientWorld world,
double x,
double y,
double z,
double velocityX,
double velocityY,
double velocityZ,
ParticleManager particleManager,
CompoundTag tag) |
Modifier and Type | Method and Description |
---|---|
private void |
addExplosionParticle(double x,
double y,
double z,
double velocityX,
double velocityY,
double velocityZ,
int[] colors,
int[] fadeColors,
boolean trail,
boolean flicker) |
private void |
explodeBall(double size,
int amount,
int[] colors,
int[] fadeColors,
boolean trail,
boolean flicker) |
private void |
explodeBurst(int[] colors,
int[] fadeColors,
boolean trail,
boolean flocker) |
private void |
explodeStar(double size,
double[][] pattern,
int[] colors,
int[] fadeColors,
boolean trail,
boolean flicker,
boolean keepShape) |
private boolean |
isFar() |
void |
tick() |
buildGeometry, getType
getBoundingBox, getColorMultiplier, getMaxAge, isAlive, markDead, move, move, repositionFromBoundingBox, scale, setBoundingBox, setBoundingBoxSpacing, setColor, setColorAlpha, setMaxAge, setPos, toString
private int age
private final ParticleManager particleManager
private ListTag explosions
private boolean flicker
public FireworkParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, ParticleManager particleManager, @Nullable CompoundTag tag)
private boolean isFar()
private void addExplosionParticle(double x, double y, double z, double velocityX, double velocityY, double velocityZ, int[] colors, int[] fadeColors, boolean trail, boolean flicker)
private void explodeBall(double size, int amount, int[] colors, int[] fadeColors, boolean trail, boolean flicker)
private void explodeStar(double size, double[][] pattern, int[] colors, int[] fadeColors, boolean trail, boolean flicker, boolean keepShape)
private void explodeBurst(int[] colors, int[] fadeColors, boolean trail, boolean flocker)