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

项目: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   
/**
 * Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below
 * name)
 */
public void handleDisplayScoreboard(S3DPacketDisplayScoreboard packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Scoreboard scoreboard = this.clientWorldController.getScoreboard();

    if (packetIn.func_149370_d().length() == 0)
    {
        scoreboard.setObjectiveInDisplaySlot(packetIn.func_149371_c(), (ScoreObjective)null);
    }
    else
    {
        ScoreObjective scoreobjective = scoreboard.getObjective(packetIn.func_149370_d());
        scoreboard.setObjectiveInDisplaySlot(packetIn.func_149371_c(), 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   
/**
 * Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below
 * name)
 */
public void handleDisplayScoreboard(S3DPacketDisplayScoreboard packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Scoreboard scoreboard = this.clientWorldController.getScoreboard();

    if (packetIn.func_149370_d().length() == 0)
    {
        scoreboard.setObjectiveInDisplaySlot(packetIn.func_149371_c(), (ScoreObjective)null);
    }
    else
    {
        ScoreObjective scoreobjective = scoreboard.getObjective(packetIn.func_149370_d());
        scoreboard.setObjectiveInDisplaySlot(packetIn.func_149371_c(), 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    文件: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    文件: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;
}
项目:nailed    文件:PlayerScoreboardManager.java   
@Override
public void setDisplay(@Nonnull DisplayType display, @Nullable Objective objective) {
    Checks.notNull(display, "Display type may not be null");
    //if(this.displayLocations.get(type) == objective){
    //    return;
    //}
    S3DPacketDisplayScoreboard packet = new S3DPacketDisplayScoreboard();
    packet.position = display.getId();
    if(objective == null){
        this.displayLocations.remove(display);
        packet.scoreName = "";
    }else{
        this.displayLocations.put(display, objective);
        packet.scoreName = objective.getId();
    }
    this.sendPacket(packet);
}
项目:nailed    文件:MapScoreboardManager.java   
@Override
public void setDisplay(@Nonnull DisplayType display, @Nullable Objective objective) {
    Checks.notNull(display, "Display type may not be null");
    //if(this.displayLocations.get(type) == objective){
    //    return;
    //}
    S3DPacketDisplayScoreboard packet = new S3DPacketDisplayScoreboard();
    packet.position = display.getId();
    if(objective == null){
        this.displayLocations.remove(display);
        packet.scoreName = "";
    }else{
        this.displayLocations.put(display, objective);
        packet.scoreName = objective.getId();
    }
    this.sendPacket(packet);
}
项目:DecompiledMinecraft    文件:ServerScoreboard.java   
/**
 * 0 is tab menu, 1 is sidebar, 2 is below name
 */
public void setObjectiveInDisplaySlot(int p_96530_1_, ScoreObjective p_96530_2_)
{
    ScoreObjective scoreobjective = this.getObjectiveInDisplaySlot(p_96530_1_);
    super.setObjectiveInDisplaySlot(p_96530_1_, p_96530_2_);

    if (scoreobjective != p_96530_2_ && scoreobjective != null)
    {
        if (this.func_96552_h(scoreobjective) > 0)
        {
            this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3DPacketDisplayScoreboard(p_96530_1_, p_96530_2_));
        }
        else
        {
            this.getPlayerIterator(scoreobjective);
        }
    }

    if (p_96530_2_ != null)
    {
        if (this.field_96553_b.contains(p_96530_2_))
        {
            this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3DPacketDisplayScoreboard(p_96530_1_, p_96530_2_));
        }
        else
        {
            this.func_96549_e(p_96530_2_);
        }
    }

    this.func_96551_b();
}
项目:DecompiledMinecraft    文件:ServerScoreboard.java   
public List<Packet> func_96548_f(ScoreObjective p_96548_1_)
{
    List<Packet> list = Lists.<Packet>newArrayList();
    list.add(new S3BPacketScoreboardObjective(p_96548_1_, 1));

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

    return list;
}
项目:DecompiledMinecraft    文件:ServerScoreboard.java   
/**
 * 0 is tab menu, 1 is sidebar, 2 is below name
 */
public void setObjectiveInDisplaySlot(int p_96530_1_, ScoreObjective p_96530_2_)
{
    ScoreObjective scoreobjective = this.getObjectiveInDisplaySlot(p_96530_1_);
    super.setObjectiveInDisplaySlot(p_96530_1_, p_96530_2_);

    if (scoreobjective != p_96530_2_ && scoreobjective != null)
    {
        if (this.func_96552_h(scoreobjective) > 0)
        {
            this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3DPacketDisplayScoreboard(p_96530_1_, p_96530_2_));
        }
        else
        {
            this.getPlayerIterator(scoreobjective);
        }
    }

    if (p_96530_2_ != null)
    {
        if (this.field_96553_b.contains(p_96530_2_))
        {
            this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3DPacketDisplayScoreboard(p_96530_1_, p_96530_2_));
        }
        else
        {
            this.func_96549_e(p_96530_2_);
        }
    }

    this.func_96551_b();
}
项目:DecompiledMinecraft    文件:ServerScoreboard.java   
public List<Packet> func_96548_f(ScoreObjective p_96548_1_)
{
    List<Packet> list = Lists.<Packet>newArrayList();
    list.add(new S3BPacketScoreboardObjective(p_96548_1_, 1));

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

    return list;
}
项目:BaseClient    文件:ServerScoreboard.java   
/**
 * 0 is tab menu, 1 is sidebar, 2 is below name
 */
public void setObjectiveInDisplaySlot(int p_96530_1_, ScoreObjective p_96530_2_)
{
    ScoreObjective scoreobjective = this.getObjectiveInDisplaySlot(p_96530_1_);
    super.setObjectiveInDisplaySlot(p_96530_1_, p_96530_2_);

    if (scoreobjective != p_96530_2_ && scoreobjective != null)
    {
        if (this.func_96552_h(scoreobjective) > 0)
        {
            this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3DPacketDisplayScoreboard(p_96530_1_, p_96530_2_));
        }
        else
        {
            this.getPlayerIterator(scoreobjective);
        }
    }

    if (p_96530_2_ != null)
    {
        if (this.field_96553_b.contains(p_96530_2_))
        {
            this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3DPacketDisplayScoreboard(p_96530_1_, p_96530_2_));
        }
        else
        {
            this.func_96549_e(p_96530_2_);
        }
    }

    this.func_96551_b();
}
项目:BaseClient    文件:ServerScoreboard.java   
public List<Packet> func_96548_f(ScoreObjective p_96548_1_)
{
    List<Packet> list = Lists.<Packet>newArrayList();
    list.add(new S3BPacketScoreboardObjective(p_96548_1_, 1));

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

    return list;
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * Removes or sets the ScoreObjective to be displayed at a particular scoreboard
 * position (list, sidebar, below name)
 */
public void handleDisplayScoreboard(S3DPacketDisplayScoreboard packetIn) {
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Scoreboard scoreboard = this.clientWorldController.getScoreboard();

    if (packetIn.func_149370_d().length() == 0) {
        scoreboard.setObjectiveInDisplaySlot(packetIn.func_149371_c(), (ScoreObjective) null);
    } else {
        ScoreObjective scoreobjective = scoreboard.getObjective(packetIn.func_149370_d());
        scoreboard.setObjectiveInDisplaySlot(packetIn.func_149371_c(), scoreobjective);
    }
}
项目:BaseClient    文件:ServerScoreboard.java   
/**
 * 0 is tab menu, 1 is sidebar, 2 is below name
 */
public void setObjectiveInDisplaySlot(int p_96530_1_, ScoreObjective p_96530_2_)
{
    ScoreObjective scoreobjective = this.getObjectiveInDisplaySlot(p_96530_1_);
    super.setObjectiveInDisplaySlot(p_96530_1_, p_96530_2_);

    if (scoreobjective != p_96530_2_ && scoreobjective != null)
    {
        if (this.func_96552_h(scoreobjective) > 0)
        {
            this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3DPacketDisplayScoreboard(p_96530_1_, p_96530_2_));
        }
        else
        {
            this.getPlayerIterator(scoreobjective);
        }
    }

    if (p_96530_2_ != null)
    {
        if (this.field_96553_b.contains(p_96530_2_))
        {
            this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3DPacketDisplayScoreboard(p_96530_1_, p_96530_2_));
        }
        else
        {
            this.func_96549_e(p_96530_2_);
        }
    }

    this.func_96551_b();
}
项目:BaseClient    文件:ServerScoreboard.java   
public List<Packet> func_96548_f(ScoreObjective p_96548_1_)
{
    List<Packet> list = Lists.<Packet>newArrayList();
    list.add(new S3BPacketScoreboardObjective(p_96548_1_, 1));

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

    return list;
}
项目:Resilience-Client-Source    文件:NetHandlerPlayClient.java   
/**
 * Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below
 * name)
 */
public void handleDisplayScoreboard(S3DPacketDisplayScoreboard p_147254_1_)
{
    Scoreboard var2 = this.clientWorldController.getScoreboard();

    if (p_147254_1_.func_149370_d().length() == 0)
    {
        var2.func_96530_a(p_147254_1_.func_149371_c(), (ScoreObjective)null);
    }
    else
    {
        ScoreObjective var3 = var2.getObjective(p_147254_1_.func_149370_d());
        var2.func_96530_a(p_147254_1_.func_149371_c(), var3);
    }
}
项目:Resilience-Client-Source    文件:ServerScoreboard.java   
public void func_96530_a(int par1, ScoreObjective par2ScoreObjective)
{
    ScoreObjective var3 = this.func_96539_a(par1);
    super.func_96530_a(par1, par2ScoreObjective);

    if (var3 != par2ScoreObjective && var3 != null)
    {
        if (this.func_96552_h(var3) > 0)
        {
            this.scoreboardMCServer.getConfigurationManager().func_148540_a(new S3DPacketDisplayScoreboard(par1, par2ScoreObjective));
        }
        else
        {
            this.func_96546_g(var3);
        }
    }

    if (par2ScoreObjective != null)
    {
        if (this.field_96553_b.contains(par2ScoreObjective))
        {
            this.scoreboardMCServer.getConfigurationManager().func_148540_a(new S3DPacketDisplayScoreboard(par1, par2ScoreObjective));
        }
        else
        {
            this.func_96549_e(par2ScoreObjective);
        }
    }

    this.func_96551_b();
}
项目:Resilience-Client-Source    文件:ServerScoreboard.java   
public List func_96548_f(ScoreObjective par1ScoreObjective)
{
    ArrayList var2 = new ArrayList();
    var2.add(new S3BPacketScoreboardObjective(par1ScoreObjective, 1));

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

    return var2;
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleDisplayScoreboard(S3DPacketDisplayScoreboard p_147254_1_)
{
    Scoreboard scoreboard = this.clientWorldController.getScoreboard();

    if (p_147254_1_.func_149370_d().length() == 0)
    {
        scoreboard.func_96530_a(p_147254_1_.func_149371_c(), (ScoreObjective)null);
    }
    else
    {
        ScoreObjective scoreobjective = scoreboard.getObjective(p_147254_1_.func_149370_d());
        scoreboard.func_96530_a(p_147254_1_.func_149371_c(), scoreobjective);
    }
}
项目:Cauldron    文件:ServerScoreboard.java   
public void func_96530_a(int p_96530_1_, ScoreObjective p_96530_2_)
{
    ScoreObjective scoreobjective1 = this.func_96539_a(p_96530_1_);
    super.func_96530_a(p_96530_1_, p_96530_2_);

    if (scoreobjective1 != p_96530_2_ && scoreobjective1 != null)
    {
        if (this.func_96552_h(scoreobjective1) > 0)
        {
            this.sendAll(new S3DPacketDisplayScoreboard(p_96530_1_, p_96530_2_)); // CraftBukkit - Internal packet method
        }
        else
        {
            this.func_96546_g(scoreobjective1);
        }
    }

    if (p_96530_2_ != null)
    {
        if (this.field_96553_b.contains(p_96530_2_))
        {
            this.sendAll(new S3DPacketDisplayScoreboard(p_96530_1_, p_96530_2_)); // CraftBukkit - Internal packet method
        }
        else
        {
            this.func_96549_e(p_96530_2_);
        }
    }

    this.func_96551_b();
}
项目:Cauldron    文件:ServerScoreboard.java   
public List func_96548_f(ScoreObjective p_96548_1_)
{
    ArrayList arraylist = new ArrayList();
    arraylist.add(new S3BPacketScoreboardObjective(p_96548_1_, 1));

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

    return arraylist;
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleDisplayScoreboard(S3DPacketDisplayScoreboard p_147254_1_)
{
    Scoreboard scoreboard = this.clientWorldController.getScoreboard();

    if (p_147254_1_.func_149370_d().length() == 0)
    {
        scoreboard.func_96530_a(p_147254_1_.func_149371_c(), (ScoreObjective)null);
    }
    else
    {
        ScoreObjective scoreobjective = scoreboard.getObjective(p_147254_1_.func_149370_d());
        scoreboard.func_96530_a(p_147254_1_.func_149371_c(), scoreobjective);
    }
}
项目:Cauldron    文件:ServerScoreboard.java   
public void func_96530_a(int p_96530_1_, ScoreObjective p_96530_2_)
{
    ScoreObjective scoreobjective1 = this.func_96539_a(p_96530_1_);
    super.func_96530_a(p_96530_1_, p_96530_2_);

    if (scoreobjective1 != p_96530_2_ && scoreobjective1 != null)
    {
        if (this.func_96552_h(scoreobjective1) > 0)
        {
            this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3DPacketDisplayScoreboard(p_96530_1_, p_96530_2_));
        }
        else
        {
            this.func_96546_g(scoreobjective1);
        }
    }

    if (p_96530_2_ != null)
    {
        if (this.field_96553_b.contains(p_96530_2_))
        {
            this.scoreboardMCServer.getConfigurationManager().sendPacketToAllPlayers(new S3DPacketDisplayScoreboard(p_96530_1_, p_96530_2_));
        }
        else
        {
            this.func_96549_e(p_96530_2_);
        }
    }

    this.func_96551_b();
}
项目:Cauldron    文件:ServerScoreboard.java   
public List func_96548_f(ScoreObjective p_96548_1_)
{
    ArrayList arraylist = new ArrayList();
    arraylist.add(new S3BPacketScoreboardObjective(p_96548_1_, 1));

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

    return arraylist;
}
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
/**
 * Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below
 * name)
 */
void handleDisplayScoreboard(S3DPacketDisplayScoreboard packetIn);
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
/**
 * Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below
 * name)
 */
void handleDisplayScoreboard(S3DPacketDisplayScoreboard packetIn);
项目:BaseClient    文件:INetHandlerPlayClient.java   
/**
 * Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below
 * name)
 */
void handleDisplayScoreboard(S3DPacketDisplayScoreboard packetIn);
项目:BaseClient    文件:INetHandlerPlayClient.java   
/**
 * Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below
 * name)
 */
void handleDisplayScoreboard(S3DPacketDisplayScoreboard packetIn);
项目:Resilience-Client-Source    文件:INetHandlerPlayClient.java   
/**
 * Removes or sets the ScoreObjective to be displayed at a particular scoreboard position (list, sidebar, below
 * name)
 */
void handleDisplayScoreboard(S3DPacketDisplayScoreboard var1);
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleDisplayScoreboard(S3DPacketDisplayScoreboard p_147254_1_);
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleDisplayScoreboard(S3DPacketDisplayScoreboard p_147254_1_);