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

项目:RuneCraftery    文件:NetClientHandler.java   
public void func_72478_a(Packet35EntityHeadRotation p_72478_1_) {
   Entity var2 = this.func_72545_a(p_72478_1_.field_73383_a);
   if(var2 != null) {
      float var3 = (float)(p_72478_1_.field_73382_b * 360) / 256.0F;
      var2.func_70034_d(var3);
   }
}
项目:RuneCraftery    文件:NetClientHandler.java   
public void handleEntityHeadRotation(Packet35EntityHeadRotation par1Packet35EntityHeadRotation)
{
    Entity entity = this.getEntityByID(par1Packet35EntityHeadRotation.entityId);

    if (entity != null)
    {
        float f = (float)(par1Packet35EntityHeadRotation.headRotationYaw * 360) / 256.0F;
        entity.setRotationYawHead(f);
    }
}
项目:BetterNutritionMod    文件:NetClientHandler.java   
public void handleEntityHeadRotation(Packet35EntityHeadRotation par1Packet35EntityHeadRotation)
{
    Entity entity = this.getEntityByID(par1Packet35EntityHeadRotation.entityId);

    if (entity != null)
    {
        float f = (float)(par1Packet35EntityHeadRotation.headRotationYaw * 360) / 256.0F;
        entity.setRotationYawHead(f);
    }
}
项目:forge_world_downloader    文件:WDLNetClientHandler.java   
@Override
public void handleEntityHeadRotation(Packet35EntityHeadRotation par1Packet35EntityHeadRotation)
{
    nch.handleEntityHeadRotation(par1Packet35EntityHeadRotation);       
}
项目:RuneCraftery    文件:NetHandler.java   
public void func_72478_a(Packet35EntityHeadRotation p_72478_1_) {
   this.func_72509_a(p_72478_1_);
}