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

项目:RuneCraftery    文件:WorldServer.java   
public Explosion func_72885_a(Entity p_72885_1_, double p_72885_2_, double p_72885_4_, double p_72885_6_, float p_72885_8_, boolean p_72885_9_, boolean p_72885_10_) {
   Explosion var11 = new Explosion(this, p_72885_1_, p_72885_2_, p_72885_4_, p_72885_6_, p_72885_8_);
   var11.field_77286_a = p_72885_9_;
   var11.field_82755_b = p_72885_10_;
   var11.func_77278_a();
   var11.func_77279_a(false);
   if(!p_72885_10_) {
      var11.field_77281_g.clear();
   }

   Iterator var12 = this.field_73010_i.iterator();

   while(var12.hasNext()) {
      EntityPlayer var13 = (EntityPlayer)var12.next();
      if(var13.func_70092_e(p_72885_2_, p_72885_4_, p_72885_6_) < 4096.0D) {
         ((EntityPlayerMP)var13).field_71135_a.func_72567_b(new Packet60Explosion(p_72885_2_, p_72885_4_, p_72885_6_, p_72885_8_, var11.field_77281_g, (Vec3)var11.func_77277_b().get(var13)));
      }
   }

   return var11;
}
项目:RuneCraftery    文件:NetClientHandler.java   
public void func_72499_a(Packet60Explosion p_72499_1_) {
   Explosion var2 = new Explosion(this.field_72563_h.field_71441_e, (Entity)null, p_72499_1_.field_73616_a, p_72499_1_.field_73614_b, p_72499_1_.field_73615_c, p_72499_1_.field_73612_d);
   var2.field_77281_g = p_72499_1_.field_73613_e;
   var2.func_77279_a(true);
   this.field_72563_h.field_71439_g.field_70159_w += (double)p_72499_1_.func_73607_d();
   this.field_72563_h.field_71439_g.field_70181_x += (double)p_72499_1_.func_73609_f();
   this.field_72563_h.field_71439_g.field_70179_y += (double)p_72499_1_.func_73608_g();
}
项目:RuneCraftery    文件:WorldServer.java   
/**
 * returns a new explosion. Does initiation (at time of writing Explosion is not finished)
 */
public Explosion newExplosion(Entity par1Entity, double par2, double par4, double par6, float par8, boolean par9, boolean par10)
{
    Explosion explosion = new Explosion(this, par1Entity, par2, par4, par6, par8);
    explosion.isFlaming = par9;
    explosion.isSmoking = par10;
    explosion.doExplosionA();
    explosion.doExplosionB(false);

    if (!par10)
    {
        explosion.affectedBlockPositions.clear();
    }

    Iterator iterator = this.playerEntities.iterator();

    while (iterator.hasNext())
    {
        EntityPlayer entityplayer = (EntityPlayer)iterator.next();

        if (entityplayer.getDistanceSq(par2, par4, par6) < 4096.0D)
        {
            ((EntityPlayerMP)entityplayer).playerNetServerHandler.sendPacketToPlayer(new Packet60Explosion(par2, par4, par6, par8, explosion.affectedBlockPositions, (Vec3)explosion.func_77277_b().get(entityplayer)));
        }
    }

    return explosion;
}
项目:RuneCraftery    文件:NetClientHandler.java   
public void handleExplosion(Packet60Explosion par1Packet60Explosion)
{
    Explosion explosion = new Explosion(this.mc.theWorld, (Entity)null, par1Packet60Explosion.explosionX, par1Packet60Explosion.explosionY, par1Packet60Explosion.explosionZ, par1Packet60Explosion.explosionSize);
    explosion.affectedBlockPositions = par1Packet60Explosion.chunkPositionRecords;
    explosion.doExplosionB(true);
    this.mc.thePlayer.motionX += (double)par1Packet60Explosion.getPlayerVelocityX();
    this.mc.thePlayer.motionY += (double)par1Packet60Explosion.getPlayerVelocityY();
    this.mc.thePlayer.motionZ += (double)par1Packet60Explosion.getPlayerVelocityZ();
}
项目:BetterNutritionMod    文件:WorldServer.java   
/**
 * returns a new explosion. Does initiation (at time of writing Explosion is not finished)
 */
public Explosion newExplosion(Entity par1Entity, double par2, double par4, double par6, float par8, boolean par9, boolean par10)
{
    Explosion explosion = new Explosion(this, par1Entity, par2, par4, par6, par8);
    explosion.isFlaming = par9;
    explosion.isSmoking = par10;
    explosion.doExplosionA();
    explosion.doExplosionB(false);

    if (!par10)
    {
        explosion.affectedBlockPositions.clear();
    }

    Iterator iterator = this.playerEntities.iterator();

    while (iterator.hasNext())
    {
        EntityPlayer entityplayer = (EntityPlayer)iterator.next();

        if (entityplayer.getDistanceSq(par2, par4, par6) < 4096.0D)
        {
            ((EntityPlayerMP)entityplayer).playerNetServerHandler.sendPacketToPlayer(new Packet60Explosion(par2, par4, par6, par8, explosion.affectedBlockPositions, (Vec3)explosion.func_77277_b().get(entityplayer)));
        }
    }

    return explosion;
}
项目:BetterNutritionMod    文件:NetClientHandler.java   
public void handleExplosion(Packet60Explosion par1Packet60Explosion)
{
    Explosion explosion = new Explosion(this.mc.theWorld, (Entity)null, par1Packet60Explosion.explosionX, par1Packet60Explosion.explosionY, par1Packet60Explosion.explosionZ, par1Packet60Explosion.explosionSize);
    explosion.affectedBlockPositions = par1Packet60Explosion.chunkPositionRecords;
    explosion.doExplosionB(true);
    this.mc.thePlayer.motionX += (double)par1Packet60Explosion.getPlayerVelocityX();
    this.mc.thePlayer.motionY += (double)par1Packet60Explosion.getPlayerVelocityY();
    this.mc.thePlayer.motionZ += (double)par1Packet60Explosion.getPlayerVelocityZ();
}
项目:forge_world_downloader    文件:WDLNetClientHandler.java   
@Override
public void handleExplosion(Packet60Explosion par1Packet60Explosion)
{
    nch.handleExplosion(par1Packet60Explosion);     
}
项目:RuneCraftery    文件:NetHandler.java   
public void func_72499_a(Packet60Explosion p_72499_1_) {
   this.func_72509_a(p_72499_1_);
}