Package net.minecraft.client.particle
Class FireworksSparkParticle.FireworkParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.NoRenderParticle
net.minecraft.client.particle.FireworksSparkParticle.FireworkParticle
- Enclosing class:
- FireworksSparkParticle
@Environment(CLIENT) public static class FireworksSparkParticle.FireworkParticle extends NoRenderParticle
-
Field Summary
Fields Modifier and Type Field Description private int
age
private ListTag
explosions
private boolean
flicker
private ParticleManager
particleManager
-
Constructor Summary
Constructors Constructor Description FireworkParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, ParticleManager particleManager, CompoundTag tag)
-
Method Summary
Modifier and Type Method 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()
Methods inherited from class net.minecraft.client.particle.NoRenderParticle
buildGeometry, getType
Methods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getColorMultiplier, getMaxAge, isAlive, markDead, move, move, repositionFromBoundingBox, scale, setBoundingBox, setBoundingBoxSpacing, setColor, setColorAlpha, setMaxAge, setPos, toString
-
Field Details
-
age
private int age -
particleManager
-
explosions
-
flicker
private boolean flicker
-
-
Constructor Details
-
FireworkParticle
public FireworkParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, ParticleManager particleManager, @Nullable CompoundTag tag)
-
-
Method Details
-
tick
public void tick() -
isFar
private boolean isFar() -
addExplosionParticle
private void addExplosionParticle(double x, double y, double z, double velocityX, double velocityY, double velocityZ, int[] colors, int[] fadeColors, boolean trail, boolean flicker) -
explodeBall
private void explodeBall(double size, int amount, int[] colors, int[] fadeColors, boolean trail, boolean flicker) -
explodeStar
private void explodeStar(double size, double[][] pattern, int[] colors, int[] fadeColors, boolean trail, boolean flicker, boolean keepShape) -
explodeBurst
private void explodeBurst(int[] colors, int[] fadeColors, boolean trail, boolean flocker)
-