ParticleBubble.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:Bewitchment 作者:
private ParticleBubble(TextureManager textureManagerIn, World world, double x, double y, double z, int rgb) {
    super(world, x, y, z, 0, 0, 0);
    this.textureManager = textureManagerIn;
    this.motionX *= 0.009999999776482582D;
    this.motionY = 0.1D * 0.20000000298023224D + (Math.random() * 2.0D - 1.0D) * 0.019999999552965164D;
    this.motionZ *= 0.009999999776482582D;

    this.particleScale *= 0.025F;
    this.particleMaxAge = 2;
    rgb = new Color(rgb, false).brighter().brighter().brighter().brighter().hashCode();
    float r = (rgb >>> 16 & 0xFF) / 256.0F;
    float g = (rgb >>> 8 & 0xFF) / 256.0F;
    float b = (rgb & 0xFF) / 256.0F;
    setRBGColorF(r, g, b);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号