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

项目:RuneCraftery    文件:NetClientHandler.java   
public void handleEntity(Packet30Entity par1Packet30Entity)
{
    Entity entity = this.getEntityByID(par1Packet30Entity.entityId);

    if (entity != null)
    {
        entity.serverPosX += par1Packet30Entity.xPosition;
        entity.serverPosY += par1Packet30Entity.yPosition;
        entity.serverPosZ += par1Packet30Entity.zPosition;
        double d0 = (double)entity.serverPosX / 32.0D;
        double d1 = (double)entity.serverPosY / 32.0D;
        double d2 = (double)entity.serverPosZ / 32.0D;
        float f = par1Packet30Entity.rotating ? (float)(par1Packet30Entity.yaw * 360) / 256.0F : entity.rotationYaw;
        float f1 = par1Packet30Entity.rotating ? (float)(par1Packet30Entity.pitch * 360) / 256.0F : entity.rotationPitch;
        entity.setPositionAndRotation2(d0, d1, d2, f, f1, 3);
    }
}
项目:BetterNutritionMod    文件:NetClientHandler.java   
public void handleEntity(Packet30Entity par1Packet30Entity)
{
    Entity entity = this.getEntityByID(par1Packet30Entity.entityId);

    if (entity != null)
    {
        entity.serverPosX += par1Packet30Entity.xPosition;
        entity.serverPosY += par1Packet30Entity.yPosition;
        entity.serverPosZ += par1Packet30Entity.zPosition;
        double d0 = (double)entity.serverPosX / 32.0D;
        double d1 = (double)entity.serverPosY / 32.0D;
        double d2 = (double)entity.serverPosZ / 32.0D;
        float f = par1Packet30Entity.rotating ? (float)(par1Packet30Entity.yaw * 360) / 256.0F : entity.rotationYaw;
        float f1 = par1Packet30Entity.rotating ? (float)(par1Packet30Entity.pitch * 360) / 256.0F : entity.rotationPitch;
        entity.setPositionAndRotation2(d0, d1, d2, f, f1, 3);
    }
}
项目:RuneCraftery    文件:NetClientHandler.java   
public void func_72482_a(Packet30Entity p_72482_1_) {
   Entity var2 = this.func_72545_a(p_72482_1_.field_73554_a);
   if(var2 != null) {
      var2.field_70118_ct += p_72482_1_.field_73552_b;
      var2.field_70117_cu += p_72482_1_.field_73553_c;
      var2.field_70116_cv += p_72482_1_.field_73550_d;
      double var3 = (double)var2.field_70118_ct / 32.0D;
      double var5 = (double)var2.field_70117_cu / 32.0D;
      double var7 = (double)var2.field_70116_cv / 32.0D;
      float var9 = p_72482_1_.field_73549_g?(float)(p_72482_1_.field_73551_e * 360) / 256.0F:var2.field_70177_z;
      float var10 = p_72482_1_.field_73549_g?(float)(p_72482_1_.field_73548_f * 360) / 256.0F:var2.field_70125_A;
      var2.func_70056_a(var3, var5, var7, var9, var10, 3);
   }
}
项目:forge_world_downloader    文件:WDLNetClientHandler.java   
@Override
public void handleEntity(Packet30Entity par1Packet30Entity)
{
    nch.handleEntity(par1Packet30Entity);       
}
项目:RuneCraftery    文件:NetHandler.java   
public void func_72482_a(Packet30Entity p_72482_1_) {
   this.func_72509_a(p_72482_1_);
}