当前位置: 首页>>代码示例>>Java>>正文


Java Score.func_96647_c方法代码示例

本文整理汇总了Java中net.minecraft.scoreboard.Score.func_96647_c方法的典型用法代码示例。如果您正苦于以下问题:Java Score.func_96647_c方法的具体用法?Java Score.func_96647_c怎么用?Java Score.func_96647_c使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.scoreboard.Score的用法示例。


在下文中一共展示了Score.func_96647_c方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: handleUpdateScore

import net.minecraft.scoreboard.Score; //导入方法依赖的package包/类
/**
 * Either updates the score with a specified value or removes the score for an objective
 */
public void handleUpdateScore(S3CPacketUpdateScore p_147250_1_)
{
    Scoreboard var2 = this.clientWorldController.getScoreboard();
    ScoreObjective var3 = var2.getObjective(p_147250_1_.func_149321_d());

    if (p_147250_1_.func_149322_f() == 0)
    {
        Score var4 = var2.func_96529_a(p_147250_1_.func_149324_c(), var3);
        var4.func_96647_c(p_147250_1_.func_149323_e());
    }
    else if (p_147250_1_.func_149322_f() == 1)
    {
        var2.func_96515_c(p_147250_1_.func_149324_c());
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:19,代码来源:NetHandlerPlayClient.java

示例2: func_147197_m

import net.minecraft.scoreboard.Score; //导入方法依赖的package包/类
protected void func_147197_m(ICommandSender p_147197_1_, String[] p_147197_2_, int p_147197_3_)
{
    String var4 = p_147197_2_[p_147197_3_ - 1];
    String var5 = func_96332_d(p_147197_1_, p_147197_2_[p_147197_3_++]);
    ScoreObjective var6 = this.func_147189_a(p_147197_2_[p_147197_3_++], true);
    int var7 = var4.equalsIgnoreCase("set") ? parseInt(p_147197_1_, p_147197_2_[p_147197_3_++]) : parseIntWithMin(p_147197_1_, p_147197_2_[p_147197_3_++], 1);
    Scoreboard var8 = this.func_147192_d();
    Score var9 = var8.func_96529_a(var5, var6);

    if (var4.equalsIgnoreCase("set"))
    {
        var9.func_96647_c(var7);
    }
    else if (var4.equalsIgnoreCase("add"))
    {
        var9.func_96649_a(var7);
    }
    else
    {
        var9.func_96646_b(var7);
    }

    notifyAdmins(p_147197_1_, "commands.scoreboard.players.set.success", new Object[] {var6.getName(), var5, Integer.valueOf(var9.getScorePoints())});
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:25,代码来源:CommandScoreboard.java

示例3: func_96339_l

import net.minecraft.scoreboard.Score; //导入方法依赖的package包/类
protected void func_96339_l(ICommandSender p_96339_1_, String[] p_96339_2_, int p_96339_3_) {
   String var4 = p_96339_2_[p_96339_3_ - 1];
   String var5 = func_96332_d(p_96339_1_, p_96339_2_[p_96339_3_++]);
   ScoreObjective var6 = this.func_96345_a(p_96339_2_[p_96339_3_++], true);
   int var7 = var4.equalsIgnoreCase("set")?func_71526_a(p_96339_1_, p_96339_2_[p_96339_3_++]):func_71528_a(p_96339_1_, p_96339_2_[p_96339_3_++], 1);
   Scoreboard var8 = this.func_96334_d();
   Score var9 = var8.func_96529_a(var5, var6);
   if(var4.equalsIgnoreCase("set")) {
      var9.func_96647_c(var7);
   } else if(var4.equalsIgnoreCase("add")) {
      var9.func_96649_a(var7);
   } else {
      var9.func_96646_b(var7);
   }

   func_71522_a(p_96339_1_, "commands.scoreboard.players.set.success", new Object[]{var6.func_96679_b(), var5, Integer.valueOf(var9.func_96652_c())});
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:18,代码来源:ServerCommandScoreboard.java

示例4: handleSetScore

import net.minecraft.scoreboard.Score; //导入方法依赖的package包/类
/**
 * Handle a set score packet.
 */
public void handleSetScore(Packet207SetScore par1Packet207SetScore)
{
    Scoreboard scoreboard = this.worldClient.getScoreboard();
    ScoreObjective scoreobjective = scoreboard.getObjective(par1Packet207SetScore.scoreName);

    if (par1Packet207SetScore.updateOrRemove == 0)
    {
        Score score = scoreboard.func_96529_a(par1Packet207SetScore.itemName, scoreobjective);
        score.func_96647_c(par1Packet207SetScore.value);
    }
    else if (par1Packet207SetScore.updateOrRemove == 1)
    {
        scoreboard.func_96515_c(par1Packet207SetScore.itemName);
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:19,代码来源:NetClientHandler.java

示例5: func_96437_a

import net.minecraft.scoreboard.Score; //导入方法依赖的package包/类
public void func_96437_a(Packet207SetScore p_96437_1_) {
   Scoreboard var2 = this.field_72564_i.func_96441_U();
   ScoreObjective var3 = var2.func_96518_b(p_96437_1_.field_96486_b);
   if(p_96437_1_.field_96485_d == 0) {
      Score var4 = var2.func_96529_a(p_96437_1_.field_96488_a, var3);
      var4.func_96647_c(p_96437_1_.field_96487_c);
   } else if(p_96437_1_.field_96485_d == 1) {
      var2.func_96515_c(p_96437_1_.field_96488_a);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:12,代码来源:NetClientHandler.java

示例6: func_96500_c

import net.minecraft.scoreboard.Score; //导入方法依赖的package包/类
protected void func_96500_c(NBTTagList p_96500_1_) {
   for(int var2 = 0; var2 < p_96500_1_.func_74745_c(); ++var2) {
      NBTTagCompound var3 = (NBTTagCompound)p_96500_1_.func_74743_b(var2);
      ScoreObjective var4 = this.field_96507_a.func_96518_b(var3.func_74779_i("Objective"));
      Score var5 = this.field_96507_a.func_96529_a(var3.func_74779_i("Name"), var4);
      var5.func_96647_c(var3.func_74762_e("Score"));
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:10,代码来源:ScoreboardSaveData.java


注:本文中的net.minecraft.scoreboard.Score.func_96647_c方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。