Search in sources :

Example 1 with NetHandlerPlayClient

use of net.minecraft.client.network.NetHandlerPlayClient in project MinecraftForge by MinecraftForge.

the class GuiIngameForge method renderPlayerList.

protected void renderPlayerList(int width, int height) {
    ScoreObjective scoreobjective = this.mc.world.getScoreboard().getObjectiveInDisplaySlot(0);
    NetHandlerPlayClient handler = mc.player.connection;
    if (mc.gameSettings.keyBindPlayerList.isKeyDown() && (!mc.isIntegratedServerRunning() || handler.getPlayerInfoMap().size() > 1 || scoreobjective != null)) {
        this.overlayPlayerList.updatePlayerList(true);
        if (pre(PLAYER_LIST))
            return;
        this.overlayPlayerList.renderPlayerlist(width, this.mc.world.getScoreboard(), scoreobjective);
        post(PLAYER_LIST);
    } else {
        this.overlayPlayerList.updatePlayerList(false);
    }
}
Also used : ScoreObjective(net.minecraft.scoreboard.ScoreObjective) NetHandlerPlayClient(net.minecraft.client.network.NetHandlerPlayClient)

Aggregations

NetHandlerPlayClient (net.minecraft.client.network.NetHandlerPlayClient)1 ScoreObjective (net.minecraft.scoreboard.ScoreObjective)1