WhiteSmokeParticle .java

net.minecraft.client.particle.WhiteSmokeParticle (class, 53 lines): members: COLOR_RGB24, xa, ya, za, scale, Provider, level. imports: SimpleParticleType.

net.minecraft.client.particleclass53 linesclientextends BaseAshSmokeParticle1.3 KB

API Surface (1)

Particle createParticle(final SimpleParticleType options, final ClientLevel level, final double x, final double y, final double z, final double xAux, final double yAux, final double zAux, final RandomSource random)

Fields & Constants (9)

COLOR_RGB24
level
x
y
z
xa
ya
za
scale

Code Graph: Dependencies (7)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

WhiteSmokeParticle.java53 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.particle;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.client.multiplayer.ClientLevel;
6
import net.minecraft.core.particles.SimpleParticleType;
7
import net.minecraft.util.RandomSource;
8
9
@Environment(EnvType.CLIENT)
10
public class WhiteSmokeParticle extends BaseAshSmokeParticle {
11
	private static final int COLOR_RGB24 = 12235202;
12
13
	protected WhiteSmokeParticle(
14
		final ClientLevel level,
15
		final double x,
16
		final double y,
17
		final double z,
18
		final double xa,
19
		final double ya,
20
		final double za,
21
		final float scale,
22
		final SpriteSet sprites
23
	) {
24
		super(level, x, y, z, 0.1F, 0.1F, 0.1F, xa, ya, za, scale, sprites, 0.3F, 8, -0.1F, true);
25
		this.rCol = 0.7294118F;
26
		this.gCol = 0.69411767F;
27
		this.bCol = 0.7607843F;
28
	}
29
30
	@Environment(EnvType.CLIENT)
31
	public static class Provider implements ParticleProvider<SimpleParticleType> {
32
		private final SpriteSet sprites;
33
34
		public Provider(final SpriteSet sprites) {
35
			this.sprites = sprites;
36
		}
37
38
		public Particle createParticle(
39
			final SimpleParticleType options,
40
			final ClientLevel level,
41
			final double x,
42
			final double y,
43
			final double z,
44
			final double xAux,
45
			final double yAux,
46
			final double zAux,
47
			final RandomSource random
48
		) {
49
			return new WhiteSmokeParticle(level, x, y, z, xAux, yAux, zAux, 1.0F, this.sprites);
50
		}
51
	}
52
}
53

Decompiled Minecraft 26.3 source of WhiteSmokeParticle (net/minecraft/client/particle/WhiteSmokeParticle.java) with Mojang official mappings, stored verbatim on the site.