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

项目:RuneCraftery    文件:EntityPlayerMP.java   
public void func_71064_a(StatBase p_71064_1_, int p_71064_2_) {
   if(p_71064_1_ != null) {
      if(!p_71064_1_.field_75972_f) {
         this.field_71135_a.func_72567_b(new Packet200Statistic(p_71064_1_.field_75975_e, p_71064_2_));
      }

   }
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
/**
 * Adds a value to a statistic field.
 */
public void addStat(StatBase par1StatBase, int par2)
{
    if (par1StatBase != null)
    {
        if (!par1StatBase.isIndependent)
        {
            this.playerNetServerHandler.sendPacketToPlayer(new Packet200Statistic(par1StatBase.statId, par2));
        }
    }
}
项目:BetterNutritionMod    文件:EntityPlayerMP.java   
/**
 * Adds a value to a statistic field.
 */
public void addStat(StatBase par1StatBase, int par2)
{
    if (par1StatBase != null)
    {
        if (!par1StatBase.isIndependent)
        {
            this.playerNetServerHandler.sendPacketToPlayer(new Packet200Statistic(par1StatBase.statId, par2));
        }
    }
}
项目:forge_world_downloader    文件:WDLNetClientHandler.java   
@Override
public void handleStatistic(Packet200Statistic par1Packet200Statistic)
{
    nch.handleStatistic(par1Packet200Statistic);        
}
项目:RuneCraftery    文件:NetHandler.java   
public void func_72517_a(Packet200Statistic p_72517_1_) {
   this.func_72509_a(p_72517_1_);
}
项目:RuneCraftery    文件:NetClientHandler.java   
public void func_72517_a(Packet200Statistic p_72517_1_) {
   this.field_72563_h.field_71439_g.func_71167_b(StatList.func_75923_a(p_72517_1_.field_73472_a), p_72517_1_.field_73471_b);
}
项目:RuneCraftery    文件:NetClientHandler.java   
/**
 * Increment player statistics
 */
public void handleStatistic(Packet200Statistic par1Packet200Statistic)
{
    this.mc.thePlayer.incrementStat(StatList.getOneShotStat(par1Packet200Statistic.statisticId), par1Packet200Statistic.amount);
}
项目:BetterNutritionMod    文件:NetClientHandler.java   
/**
 * Increment player statistics
 */
public void handleStatistic(Packet200Statistic par1Packet200Statistic)
{
    this.mc.thePlayer.incrementStat(StatList.getOneShotStat(par1Packet200Statistic.statisticId), par1Packet200Statistic.amount);
}