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


Java Score.getPlayerName方法代码示例

本文整理汇总了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;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:8,代码来源:S3CPacketUpdateScore.java

示例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;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:8,代码来源:SPacketUpdateScore.java

示例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_;
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:8,代码来源:S3CPacketUpdateScore.java

示例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;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:8,代码来源:Packet207SetScore.java


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