本文整理汇总了Java中net.minecraft.scoreboard.Score.getPlayerName方法的典型用法代码示例。如果您正苦于以下问题:Java Score.getPlayerName方法的具体用法?Java Score.getPlayerName怎么用?Java Score.getPlayerName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.scoreboard.Score
的用法示例。
在下文中一共展示了Score.getPlayerName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: S3CPacketUpdateScore
import net.minecraft.scoreboard.Score; //导入方法依赖的package包/类
public S3CPacketUpdateScore(Score scoreIn)
{
this.name = scoreIn.getPlayerName();
this.objective = scoreIn.getObjective().getName();
this.value = scoreIn.getScorePoints();
this.action = S3CPacketUpdateScore.Action.CHANGE;
}
示例2: SPacketUpdateScore
import net.minecraft.scoreboard.Score; //导入方法依赖的package包/类
public SPacketUpdateScore(Score scoreIn)
{
this.name = scoreIn.getPlayerName();
this.objective = scoreIn.getObjective().getName();
this.value = scoreIn.getScorePoints();
this.action = SPacketUpdateScore.Action.CHANGE;
}
示例3: S3CPacketUpdateScore
import net.minecraft.scoreboard.Score; //导入方法依赖的package包/类
public S3CPacketUpdateScore(Score p_i45227_1_, int p_i45227_2_)
{
this.field_149329_a = p_i45227_1_.getPlayerName();
this.field_149327_b = p_i45227_1_.func_96645_d().getName();
this.field_149328_c = p_i45227_1_.getScorePoints();
this.field_149326_d = p_i45227_2_;
}
示例4: Packet207SetScore
import net.minecraft.scoreboard.Score; //导入方法依赖的package包/类
public Packet207SetScore(Score par1Score, int par2)
{
this.itemName = par1Score.getPlayerName();
this.scoreName = par1Score.func_96645_d().getName();
this.value = par1Score.getScorePoints();
this.updateOrRemove = par2;
}