Java 类net.minecraft.network.play.server.S3CPacketUpdateScore 实例源码

项目:DecompiledMinecraft    文件:ServerScoreboard.java   
public List<Packet> func_96550_d(ScoreObjective p_96550_1_)
{
    List<Packet> list = Lists.<Packet>newArrayList();
    list.add(new S3BPacketScoreboardObjective(p_96550_1_, 0));

    for (int i = 0; i < 19; ++i)
    {
        if (this.getObjectiveInDisplaySlot(i) == p_96550_1_)
        {
            list.add(new S3DPacketDisplayScoreboard(i, p_96550_1_));
        }
    }

    for (Score score : this.getSortedScores(p_96550_1_))
    {
        list.add(new S3CPacketUpdateScore(score));
    }

    return list;
}
项目:DecompiledMinecraft    文件:NetHandlerPlayClient.java   
/**
 * Either updates the score with a specified value or removes the score for an objective
 */
public void handleUpdateScore(S3CPacketUpdateScore packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Scoreboard scoreboard = this.clientWorldController.getScoreboard();
    ScoreObjective scoreobjective = scoreboard.getObjective(packetIn.getObjectiveName());

    if (packetIn.getScoreAction() == S3CPacketUpdateScore.Action.CHANGE)
    {
        Score score = scoreboard.getValueFromObjective(packetIn.getPlayerName(), scoreobjective);
        score.setScorePoints(packetIn.getScoreValue());
    }
    else if (packetIn.getScoreAction() == S3CPacketUpdateScore.Action.REMOVE)
    {
        if (StringUtils.isNullOrEmpty(packetIn.getObjectiveName()))
        {
            scoreboard.removeObjectiveFromEntity(packetIn.getPlayerName(), (ScoreObjective)null);
        }
        else if (scoreobjective != null)
        {
            scoreboard.removeObjectiveFromEntity(packetIn.getPlayerName(), scoreobjective);
        }
    }
}
项目:DecompiledMinecraft    文件:ServerScoreboard.java   
public List<Packet> func_96550_d(ScoreObjective p_96550_1_)
{
    List<Packet> list = Lists.<Packet>newArrayList();
    list.add(new S3BPacketScoreboardObjective(p_96550_1_, 0));

    for (int i = 0; i < 19; ++i)
    {
        if (this.getObjectiveInDisplaySlot(i) == p_96550_1_)
        {
            list.add(new S3DPacketDisplayScoreboard(i, p_96550_1_));
        }
    }

    for (Score score : this.getSortedScores(p_96550_1_))
    {
        list.add(new S3CPacketUpdateScore(score));
    }

    return list;
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * Either updates the score with a specified value or removes the score for an objective
 */
public void handleUpdateScore(S3CPacketUpdateScore packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Scoreboard scoreboard = this.clientWorldController.getScoreboard();
    ScoreObjective scoreobjective = scoreboard.getObjective(packetIn.getObjectiveName());

    if (packetIn.getScoreAction() == S3CPacketUpdateScore.Action.CHANGE)
    {
        Score score = scoreboard.getValueFromObjective(packetIn.getPlayerName(), scoreobjective);
        score.setScorePoints(packetIn.getScoreValue());
    }
    else if (packetIn.getScoreAction() == S3CPacketUpdateScore.Action.REMOVE)
    {
        if (StringUtils.isNullOrEmpty(packetIn.getObjectiveName()))
        {
            scoreboard.removeObjectiveFromEntity(packetIn.getPlayerName(), (ScoreObjective)null);
        }
        else if (scoreobjective != null)
        {
            scoreboard.removeObjectiveFromEntity(packetIn.getPlayerName(), scoreobjective);
        }
    }
}
项目:BaseClient    文件:ServerScoreboard.java   
public List<Packet> func_96550_d(ScoreObjective p_96550_1_)
{
    List<Packet> list = Lists.<Packet>newArrayList();
    list.add(new S3BPacketScoreboardObjective(p_96550_1_, 0));

    for (int i = 0; i < 19; ++i)
    {
        if (this.getObjectiveInDisplaySlot(i) == p_96550_1_)
        {
            list.add(new S3DPacketDisplayScoreboard(i, p_96550_1_));
        }
    }

    for (Score score : this.getSortedScores(p_96550_1_))
    {
        list.add(new S3CPacketUpdateScore(score));
    }

    return list;
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * Either updates the score with a specified value or removes the score for an
 * objective
 */
public void handleUpdateScore(S3CPacketUpdateScore packetIn) {
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Scoreboard scoreboard = this.clientWorldController.getScoreboard();
    ScoreObjective scoreobjective = scoreboard.getObjective(packetIn.getObjectiveName());

    if (packetIn.getScoreAction() == S3CPacketUpdateScore.Action.CHANGE) {
        Score score = scoreboard.getValueFromObjective(packetIn.getPlayerName(), scoreobjective);
        score.setScorePoints(packetIn.getScoreValue());
    } else if (packetIn.getScoreAction() == S3CPacketUpdateScore.Action.REMOVE) {
        if (StringUtils.isNullOrEmpty(packetIn.getObjectiveName())) {
            scoreboard.removeObjectiveFromEntity(packetIn.getPlayerName(), (ScoreObjective) null);
        } else if (scoreobjective != null) {
            scoreboard.removeObjectiveFromEntity(packetIn.getPlayerName(), scoreobjective);
        }
    }
}
项目:BaseClient    文件:ServerScoreboard.java   
public List<Packet> func_96550_d(ScoreObjective p_96550_1_)
{
    List<Packet> list = Lists.<Packet>newArrayList();
    list.add(new S3BPacketScoreboardObjective(p_96550_1_, 0));

    for (int i = 0; i < 19; ++i)
    {
        if (this.getObjectiveInDisplaySlot(i) == p_96550_1_)
        {
            list.add(new S3DPacketDisplayScoreboard(i, p_96550_1_));
        }
    }

    for (Score score : this.getSortedScores(p_96550_1_))
    {
        list.add(new S3CPacketUpdateScore(score));
    }

    return list;
}
项目:Resilience-Client-Source    文件:NetHandlerPlayClient.java   
/**
 * 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());
    }
}
项目:Resilience-Client-Source    文件:ServerScoreboard.java   
public List func_96550_d(ScoreObjective par1ScoreObjective)
{
    ArrayList var2 = new ArrayList();
    var2.add(new S3BPacketScoreboardObjective(par1ScoreObjective, 0));

    for (int var3 = 0; var3 < 3; ++var3)
    {
        if (this.func_96539_a(var3) == par1ScoreObjective)
        {
            var2.add(new S3DPacketDisplayScoreboard(var3, par1ScoreObjective));
        }
    }

    Iterator var5 = this.func_96534_i(par1ScoreObjective).iterator();

    while (var5.hasNext())
    {
        Score var4 = (Score)var5.next();
        var2.add(new S3CPacketUpdateScore(var4, 0));
    }

    return var2;
}
项目:Cauldron    文件:ServerScoreboard.java   
public List func_96550_d(ScoreObjective p_96550_1_)
{
    ArrayList arraylist = new ArrayList();
    arraylist.add(new S3BPacketScoreboardObjective(p_96550_1_, 0));

    for (int i = 0; i < 3; ++i)
    {
        if (this.func_96539_a(i) == p_96550_1_)
        {
            arraylist.add(new S3DPacketDisplayScoreboard(i, p_96550_1_));
        }
    }

    Iterator iterator = this.func_96534_i(p_96550_1_).iterator();

    while (iterator.hasNext())
    {
        Score score = (Score)iterator.next();
        arraylist.add(new S3CPacketUpdateScore(score, 0));
    }

    return arraylist;
}
项目:Cauldron    文件:ServerScoreboard.java   
public List func_96550_d(ScoreObjective p_96550_1_)
{
    ArrayList arraylist = new ArrayList();
    arraylist.add(new S3BPacketScoreboardObjective(p_96550_1_, 0));

    for (int i = 0; i < 3; ++i)
    {
        if (this.func_96539_a(i) == p_96550_1_)
        {
            arraylist.add(new S3DPacketDisplayScoreboard(i, p_96550_1_));
        }
    }

    Iterator iterator = this.func_96534_i(p_96550_1_).iterator();

    while (iterator.hasNext())
    {
        Score score = (Score)iterator.next();
        arraylist.add(new S3CPacketUpdateScore(score, 0));
    }

    return arraylist;
}
项目:DecompiledMinecraft    文件:ServerScoreboard.java   
public void func_96536_a(Score p_96536_1_)
{
    super.func_96536_a(p_96536_1_);

    if (this.field_96553_b.contains(p_96536_1_.getObjective()))
    {
        this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_96536_1_));
    }

    this.func_96551_b();
}
项目:DecompiledMinecraft    文件:ServerScoreboard.java   
public void func_96536_a(Score p_96536_1_)
{
    super.func_96536_a(p_96536_1_);

    if (this.field_96553_b.contains(p_96536_1_.getObjective()))
    {
        this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_96536_1_));
    }

    this.func_96551_b();
}
项目:BaseClient    文件:ServerScoreboard.java   
public void func_96536_a(Score p_96536_1_)
{
    super.func_96536_a(p_96536_1_);

    if (this.field_96553_b.contains(p_96536_1_.getObjective()))
    {
        this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_96536_1_));
    }

    this.func_96551_b();
}
项目:BaseClient    文件:ServerScoreboard.java   
public void func_96536_a(Score p_96536_1_)
{
    super.func_96536_a(p_96536_1_);

    if (this.field_96553_b.contains(p_96536_1_.getObjective()))
    {
        this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_96536_1_));
    }

    this.func_96551_b();
}
项目:Resilience-Client-Source    文件:ServerScoreboard.java   
public void func_96536_a(Score par1Score)
{
    super.func_96536_a(par1Score);

    if (this.field_96553_b.contains(par1Score.func_96645_d()))
    {
        this.scoreboardMCServer.getConfigurationManager().func_148540_a(new S3CPacketUpdateScore(par1Score, 0));
    }

    this.func_96551_b();
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleUpdateScore(S3CPacketUpdateScore p_147250_1_)
{
    Scoreboard scoreboard = this.clientWorldController.getScoreboard();
    ScoreObjective scoreobjective = scoreboard.getObjective(p_147250_1_.func_149321_d());

    if (p_147250_1_.func_149322_f() == 0)
    {
        Score score = scoreboard.func_96529_a(p_147250_1_.func_149324_c(), scoreobjective);
        score.setScorePoints(p_147250_1_.func_149323_e());
    }
    else if (p_147250_1_.func_149322_f() == 1)
    {
        scoreboard.func_96515_c(p_147250_1_.func_149324_c());
    }
}
项目:Cauldron    文件:ServerScoreboard.java   
public void func_96536_a(Score p_96536_1_)
{
    super.func_96536_a(p_96536_1_);

    if (this.field_96553_b.contains(p_96536_1_.func_96645_d()))
    {
        this.sendAll(new S3CPacketUpdateScore(p_96536_1_, 0)); // CraftBukkit - Internal packet method
    }

    this.func_96551_b();
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleUpdateScore(S3CPacketUpdateScore p_147250_1_)
{
    Scoreboard scoreboard = this.clientWorldController.getScoreboard();
    ScoreObjective scoreobjective = scoreboard.getObjective(p_147250_1_.func_149321_d());

    if (p_147250_1_.func_149322_f() == 0)
    {
        Score score = scoreboard.func_96529_a(p_147250_1_.func_149324_c(), scoreobjective);
        score.setScorePoints(p_147250_1_.func_149323_e());
    }
    else if (p_147250_1_.func_149322_f() == 1)
    {
        scoreboard.func_96515_c(p_147250_1_.func_149324_c());
    }
}
项目:Cauldron    文件:ServerScoreboard.java   
public void func_96536_a(Score p_96536_1_)
{
    super.func_96536_a(p_96536_1_);

    if (this.field_96553_b.contains(p_96536_1_.func_96645_d()))
    {
        this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_96536_1_, 0));
    }

    this.func_96551_b();
}
项目:nailed    文件:NailedObjective.java   
@Override
public void removeScore(@Nonnull Score score) {
    Checks.notNull(score, "score may not be null");
    if(this.scores.remove(score)){
        this.scoresByName.remove(score.getName());
        S3CPacketUpdateScore p = new S3CPacketUpdateScore();
        p.name = score.getName();
        p.action = S3CPacketUpdateScore.Action.REMOVE;
        manager.sendPacket(p);
    }
}
项目:nailed    文件:NailedObjective.java   
public void sendData(Player player){
    for(Score score : this.scores){
        S3CPacketUpdateScore p = new S3CPacketUpdateScore();
        p.name = score.getName();
        p.objective = this.id;
        p.value = score.getValue();
        p.action = S3CPacketUpdateScore.Action.CHANGE;
        ((NailedPlayer) player).sendPacket(p);
    }
}
项目:nailed    文件:NailedScore.java   
@Override
public void update() {
    S3CPacketUpdateScore p = new S3CPacketUpdateScore();
    p.name = this.name;
    p.objective = this.owner.getId();
    p.value = this.value;
    p.action = S3CPacketUpdateScore.Action.CHANGE;
    owner.getManager().sendPacket(p);
}
项目:DecompiledMinecraft    文件:ServerScoreboard.java   
public void func_96516_a(String p_96516_1_)
{
    super.func_96516_a(p_96516_1_);
    this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_96516_1_));
    this.func_96551_b();
}
项目:DecompiledMinecraft    文件:ServerScoreboard.java   
public void func_178820_a(String p_178820_1_, ScoreObjective p_178820_2_)
{
    super.func_178820_a(p_178820_1_, p_178820_2_);
    this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_178820_1_, p_178820_2_));
    this.func_96551_b();
}
项目:DecompiledMinecraft    文件:ServerScoreboard.java   
public void func_96516_a(String p_96516_1_)
{
    super.func_96516_a(p_96516_1_);
    this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_96516_1_));
    this.func_96551_b();
}
项目:DecompiledMinecraft    文件:ServerScoreboard.java   
public void func_178820_a(String p_178820_1_, ScoreObjective p_178820_2_)
{
    super.func_178820_a(p_178820_1_, p_178820_2_);
    this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_178820_1_, p_178820_2_));
    this.func_96551_b();
}
项目:BaseClient    文件:ServerScoreboard.java   
public void func_96516_a(String p_96516_1_)
{
    super.func_96516_a(p_96516_1_);
    this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_96516_1_));
    this.func_96551_b();
}
项目:BaseClient    文件:ServerScoreboard.java   
public void func_178820_a(String p_178820_1_, ScoreObjective p_178820_2_)
{
    super.func_178820_a(p_178820_1_, p_178820_2_);
    this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_178820_1_, p_178820_2_));
    this.func_96551_b();
}
项目:BaseClient    文件:ServerScoreboard.java   
public void func_96516_a(String p_96516_1_)
{
    super.func_96516_a(p_96516_1_);
    this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_96516_1_));
    this.func_96551_b();
}
项目:BaseClient    文件:ServerScoreboard.java   
public void func_178820_a(String p_178820_1_, ScoreObjective p_178820_2_)
{
    super.func_178820_a(p_178820_1_, p_178820_2_);
    this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_178820_1_, p_178820_2_));
    this.func_96551_b();
}
项目:Resilience-Client-Source    文件:ServerScoreboard.java   
public void func_96516_a(String par1Str)
{
    super.func_96516_a(par1Str);
    this.scoreboardMCServer.getConfigurationManager().func_148540_a(new S3CPacketUpdateScore(par1Str));
    this.func_96551_b();
}
项目:Cauldron    文件:ServerScoreboard.java   
public void func_96516_a(String p_96516_1_)
{
    super.func_96516_a(p_96516_1_);
    this.sendAll(new S3CPacketUpdateScore(p_96516_1_)); // CraftBukkit - Internal packet method
    this.func_96551_b();
}
项目:Cauldron    文件:ServerScoreboard.java   
public void func_96516_a(String p_96516_1_)
{
    super.func_96516_a(p_96516_1_);
    this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3CPacketUpdateScore(p_96516_1_));
    this.func_96551_b();
}
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
/**
 * Either updates the score with a specified value or removes the score for an objective
 */
void handleUpdateScore(S3CPacketUpdateScore packetIn);
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
/**
 * Either updates the score with a specified value or removes the score for an objective
 */
void handleUpdateScore(S3CPacketUpdateScore packetIn);
项目:BaseClient    文件:INetHandlerPlayClient.java   
/**
 * Either updates the score with a specified value or removes the score for an objective
 */
void handleUpdateScore(S3CPacketUpdateScore packetIn);
项目:BaseClient    文件:INetHandlerPlayClient.java   
/**
 * Either updates the score with a specified value or removes the score for an objective
 */
void handleUpdateScore(S3CPacketUpdateScore packetIn);
项目:Resilience-Client-Source    文件:INetHandlerPlayClient.java   
/**
 * Either updates the score with a specified value or removes the score for an objective
 */
void handleUpdateScore(S3CPacketUpdateScore var1);
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleUpdateScore(S3CPacketUpdateScore p_147250_1_);