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


Java ScorePlayerTeam.getColorSuffix方法代码示例

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


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

示例1: S3EPacketTeams

import net.minecraft.scoreboard.ScorePlayerTeam; //导入方法依赖的package包/类
public S3EPacketTeams(ScorePlayerTeam p_i45225_1_, int p_i45225_2_)
{
    this.field_179816_e = Team.EnumVisible.ALWAYS.field_178830_e;
    this.field_179815_f = -1;
    this.field_149317_e = Lists.<String>newArrayList();
    this.field_149320_a = p_i45225_1_.getRegisteredName();
    this.field_149314_f = p_i45225_2_;

    if (p_i45225_2_ == 0 || p_i45225_2_ == 2)
    {
        this.field_149318_b = p_i45225_1_.getTeamName();
        this.field_149319_c = p_i45225_1_.getColorPrefix();
        this.field_149316_d = p_i45225_1_.getColorSuffix();
        this.field_149315_g = p_i45225_1_.func_98299_i();
        this.field_179816_e = p_i45225_1_.getNameTagVisibility().field_178830_e;
        this.field_179815_f = p_i45225_1_.getChatFormat().getColorIndex();
    }

    if (p_i45225_2_ == 0)
    {
        this.field_149317_e.addAll(p_i45225_1_.getMembershipCollection());
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:24,代码来源:S3EPacketTeams.java

示例2: SPacketTeams

import net.minecraft.scoreboard.ScorePlayerTeam; //导入方法依赖的package包/类
public SPacketTeams(ScorePlayerTeam teamIn, int actionIn)
{
    this.nameTagVisibility = Team.EnumVisible.ALWAYS.internalName;
    this.collisionRule = Team.CollisionRule.ALWAYS.name;
    this.color = -1;
    this.players = Lists.<String>newArrayList();
    this.name = teamIn.getRegisteredName();
    this.action = actionIn;

    if (actionIn == 0 || actionIn == 2)
    {
        this.displayName = teamIn.getTeamName();
        this.prefix = teamIn.getColorPrefix();
        this.suffix = teamIn.getColorSuffix();
        this.friendlyFlags = teamIn.getFriendlyFlags();
        this.nameTagVisibility = teamIn.getNameTagVisibility().internalName;
        this.collisionRule = teamIn.getCollisionRule().name;
        this.color = teamIn.getChatFormat().getColorIndex();
    }

    if (actionIn == 0)
    {
        this.players.addAll(teamIn.getMembershipCollection());
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:26,代码来源:SPacketTeams.java


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