Package com.mojang.minecraft.particle

Examples of com.mojang.minecraft.particle.TerrainParticle


         float var5 = (float)this.random.nextGaussian() * var1 / 4.0F;
         float var6 = MathHelper.sqrt(var3 * var3 + var4 * var4 + var5 * var5);
         float var7 = var3 / var6 / var6;
         float var8 = var4 / var6 / var6;
         var6 = var5 / var6 / var6;
         this.level.particleEngine.spawnParticle(new TerrainParticle(this.level, this.mob.x + var3, this.mob.y + var4, this.mob.z + var5, var7, var8, var6, Block.LEAVES));
      }

   }
View Full Code Here


        {
          float var9 = (float)x + ((float)var6 + 0.5F) / (float)4;
          float var10 = (float)y + ((float)var7 + 0.5F) / (float)4;
          float var11 = (float)z + ((float)var8 + 0.5F) / (float)4;

          particleManager.spawnParticle(new TerrainParticle(level, var9, var10, var11, var9 - (float) x - 0.5F, var10 - (float) y - 0.5F, var11 - (float) z - 0.5F, this));
        }
      }
    }

  }
View Full Code Here

    if(var5 == 5) {
      var8 = (float)var2 + this.x2 + var7;
    }

    var6.spawnParticle((new TerrainParticle(var1, var8, var9, var10, 0.0F, 0.0F, 0.0F, this)).setPower(0.2F).scale(0.6F));
  }
View Full Code Here

          float unknown4 = unknown0 / unknown3 / unknown3;
          float unknown5 = unknown1 / unknown3 / unknown3;

          unknown3 = unknown2 / unknown3 / unknown3;

          TerrainParticle terrainParticle = new TerrainParticle(level, x + unknown0, y + unknown1, z + unknown2, unknown4, unknown5, unknown3, Block.TNT);

          level.particleEngine.spawnParticle(terrainParticle);
        }

      }
View Full Code Here

TOP

Related Classes of com.mojang.minecraft.particle.TerrainParticle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.