Java 类net.minecraft.network.packet.Packet63WorldParticles 实例源码

项目:RuneCraftery    文件:NetClientHandler.java   
public void func_98182_a(Packet63WorldParticles p_98182_1_) {
   for(int var2 = 0; var2 < p_98182_1_.func_98202_m(); ++var2) {
      double var3 = this.field_72557_e.nextGaussian() * (double)p_98182_1_.func_98196_i();
      double var5 = this.field_72557_e.nextGaussian() * (double)p_98182_1_.func_98201_j();
      double var7 = this.field_72557_e.nextGaussian() * (double)p_98182_1_.func_98199_k();
      double var9 = this.field_72557_e.nextGaussian() * (double)p_98182_1_.func_98197_l();
      double var11 = this.field_72557_e.nextGaussian() * (double)p_98182_1_.func_98197_l();
      double var13 = this.field_72557_e.nextGaussian() * (double)p_98182_1_.func_98197_l();
      this.field_72564_i.func_72869_a(p_98182_1_.func_98195_d(), p_98182_1_.func_98200_f() + var3, p_98182_1_.func_98194_g() + var5, p_98182_1_.func_98198_h() + var7, var9, var11, var13);
   }

}
项目:RuneCraftery    文件:NetClientHandler.java   
/**
 * Handle a world particles packet.
 */
public void handleWorldParticles(Packet63WorldParticles par1Packet63WorldParticles)
{
    for (int i = 0; i < par1Packet63WorldParticles.getQuantity(); ++i)
    {
        double d0 = this.rand.nextGaussian() * (double)par1Packet63WorldParticles.getOffsetX();
        double d1 = this.rand.nextGaussian() * (double)par1Packet63WorldParticles.getOffsetY();
        double d2 = this.rand.nextGaussian() * (double)par1Packet63WorldParticles.getOffsetZ();
        double d3 = this.rand.nextGaussian() * (double)par1Packet63WorldParticles.getSpeed();
        double d4 = this.rand.nextGaussian() * (double)par1Packet63WorldParticles.getSpeed();
        double d5 = this.rand.nextGaussian() * (double)par1Packet63WorldParticles.getSpeed();
        this.worldClient.spawnParticle(par1Packet63WorldParticles.getParticleName(), par1Packet63WorldParticles.getPositionX() + d0, par1Packet63WorldParticles.getPositionY() + d1, par1Packet63WorldParticles.getPositionZ() + d2, d3, d4, d5);
    }
}
项目:BetterNutritionMod    文件:NetClientHandler.java   
/**
 * Handle a world particles packet.
 */
public void handleWorldParticles(Packet63WorldParticles par1Packet63WorldParticles)
{
    for (int i = 0; i < par1Packet63WorldParticles.getQuantity(); ++i)
    {
        double d0 = this.rand.nextGaussian() * (double)par1Packet63WorldParticles.getOffsetX();
        double d1 = this.rand.nextGaussian() * (double)par1Packet63WorldParticles.getOffsetY();
        double d2 = this.rand.nextGaussian() * (double)par1Packet63WorldParticles.getOffsetZ();
        double d3 = this.rand.nextGaussian() * (double)par1Packet63WorldParticles.getSpeed();
        double d4 = this.rand.nextGaussian() * (double)par1Packet63WorldParticles.getSpeed();
        double d5 = this.rand.nextGaussian() * (double)par1Packet63WorldParticles.getSpeed();
        this.worldClient.spawnParticle(par1Packet63WorldParticles.getParticleName(), par1Packet63WorldParticles.getPositionX() + d0, par1Packet63WorldParticles.getPositionY() + d1, par1Packet63WorldParticles.getPositionZ() + d2, d3, d4, d5);
    }
}
项目:forge_world_downloader    文件:WDLNetClientHandler.java   
@Override
public void handleWorldParticles(Packet63WorldParticles par1Packet63WorldParticles)
{
    nch.handleWorldParticles(par1Packet63WorldParticles);       
}
项目:RuneCraftery    文件:NetHandler.java   
public void func_98182_a(Packet63WorldParticles p_98182_1_) {
   this.func_72509_a(p_98182_1_);
}