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);
}
}
Aggregations