WhiteSmokeParticle.java
net.minecraft.client.particle.WhiteSmokeParticle
信息
- 全限定名:net.minecraft.client.particle.WhiteSmokeParticle
- 类型:public class
- 包:net.minecraft.client.particle
- 源码路径:src/main/java/net/minecraft/client/particle/WhiteSmokeParticle.java
- 起始行号:L10
- 继承:BaseAshSmokeParticle
- 职责:
TODO
字段/常量
COLOR_RGB24- 类型:
int - 修饰符:
private static final - 源码定位:
L11 - 说明:
TODO
- 类型:
内部类/嵌套类型
net.minecraft.client.particle.WhiteSmokeParticle.Provider- 类型:
class - 修饰符:
public static - 源码定位:
L21 - 说明:
TODO
- 类型:
构造器
protected WhiteSmokeParticle(ClientLevel level, double x, double y, double z, double xa, double ya, double za, float scale, SpriteSet sprites) @ L13
- 构造器名:WhiteSmokeParticle
- 源码定位:L13
- 修饰符:protected
参数:
- level: ClientLevel
- x: double
- y: double
- z: double
- xa: double
- ya: double
- za: double
- scale: float
- sprites: SpriteSet
说明:
TODO
方法
下面的方法块按源码顺序生成。
- 无
代码
@OnlyIn(Dist.CLIENT)
public class WhiteSmokeParticle extends BaseAshSmokeParticle {
private static final int COLOR_RGB24 = 12235202;
protected WhiteSmokeParticle(ClientLevel level, double x, double y, double z, double xa, double ya, double za, float scale, SpriteSet sprites) {
super(level, x, y, z, 0.1F, 0.1F, 0.1F, xa, ya, za, scale, sprites, 0.3F, 8, -0.1F, true);
this.rCol = 0.7294118F;
this.gCol = 0.69411767F;
this.bCol = 0.7607843F;
}
@OnlyIn(Dist.CLIENT)
public static class Provider implements ParticleProvider<SimpleParticleType> {
private final SpriteSet sprites;
public Provider(SpriteSet sprites) {
this.sprites = sprites;
}
public Particle createParticle(
SimpleParticleType options, ClientLevel level, double x, double y, double z, double xAux, double yAux, double zAux, RandomSource random
) {
return new WhiteSmokeParticle(level, x, y, z, xAux, yAux, zAux, 1.0F, this.sprites);
}
}
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
继承
- 引用位置:
-
- 引用位置:
参数
- 引用位置: