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 intageprivate ListTagexplosionsprivate booleanflickerprivate ParticleManagerparticleManager -
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 voidaddExplosionParticle(double x, double y, double z, double velocityX, double velocityY, double velocityZ, int[] colors, int[] fadeColors, boolean trail, boolean flicker)private voidexplodeBall(double size, int amount, int[] colors, int[] fadeColors, boolean trail, boolean flicker)private voidexplodeBurst(int[] colors, int[] fadeColors, boolean trail, boolean flocker)private voidexplodeStar(double size, double[][] pattern, int[] colors, int[] fadeColors, boolean trail, boolean flicker, boolean keepShape)private booleanisFar()voidtick()Methods inherited from class net.minecraft.client.particle.NoRenderParticle
buildGeometry, getTypeMethods 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)
-