0x47 S47PacketPlayerListHeaderFooter

Sets text above and below the tab player list.

Clientbound (Server → Client) · PLAY · net/minecraft/network/play/server/S47PacketPlayerListHeaderFooter.java

Published 2026-06-18 · Updated 2026-10-14

playertablistgui
Complete 5/8

Fields

FieldTypeDescription
headerIChatComponentHeader text (JSON)
footerIChatComponentFooter text (JSON)

Wire Encoding

FieldTypeNotes
HeaderChat Component (JSON)
FooterChat Component (JSON)

MCP References

MCPNetHandlerPlayClient.handlePlayerListHeaderFooter()

Handler Interface

HNDINetHandlerPlayClient

Vanilla Source

S47PacketPlayerListHeaderFooter.java58 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
import net.minecraft.network.Packet;
5
import net.minecraft.network.PacketBuffer;
6
import net.minecraft.network.play.INetHandlerPlayClient;
7
import net.minecraft.util.IChatComponent;
8
9
public class S47PacketPlayerListHeaderFooter implements Packet<INetHandlerPlayClient>
10
{
11
    private IChatComponent header;
12
    private IChatComponent footer;
13
14
    public S47PacketPlayerListHeaderFooter()
15
    {
16
    }
17
18
    public S47PacketPlayerListHeaderFooter(IChatComponent headerIn)
19
    {
20
        this.header = headerIn;
21
    }
22
23
    /**
24
     * Reads the raw packet data from the data stream.
25
     */
26
    public void readPacketData(PacketBuffer buf) throws IOException
27
    {
28
        this.header = buf.readChatComponent();
29
        this.footer = buf.readChatComponent();
30
    }
31
32
    /**
33
     * Writes the raw packet data to the data stream.
34
     */
35
    public void writePacketData(PacketBuffer buf) throws IOException
36
    {
37
        buf.writeChatComponent(this.header);
38
        buf.writeChatComponent(this.footer);
39
    }
40
41
    /**
42
     * Passes this Packet on to the NetHandler for processing.
43
     */
44
    public void processPacket(INetHandlerPlayClient handler)
45
    {
46
        handler.handlePlayerListHeaderFooter(this);
47
    }
48
49
    public IChatComponent getHeader()
50
    {
51
        return this.header;
52
    }
53
54
    public IChatComponent getFooter()
55
    {
56
        return this.footer;
57
    }
58
}

Deobfuscated MCP 1.8.9 source of S47PacketPlayerListHeaderFooter, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S47PacketPlayerListHeaderFooter.java) at build time and verified present.

Deep Dive

Role in the protocol

The server paints arbitrary text above and below the tab list. Two IChatComponent JSON strings (header, footer) arrive whenever the server wants to update the display: restart notices, rules, game-state text. The packet is clientbound-only, PLAY state, and generates no reply. It is pure presentation state pushed from the server, with no client-controlled round trip.

Vanilla handling

NetHandlerPlayClient.handlePlayerListHeaderFooter writes the header and footer into GuiPlayerTabOverlay; when the formatted text is empty the field is set to null, which hides that line. Nothing is sent back, so there is no packet the client can influence, delay or spoof.

Why clients touch it

None of the 8 clients ships a module that intercepts S47. The only non-vanilla reference in the corpus is the Rise 6.1.30 and 6.2.4 script API (NetworkAPI), which registers the class in the packet list exposed to JavaScript so user scripts can attach receive handlers. Memeware, Nekoware, Sigma, Spicy and Tenacity touch only the bundled net/minecraft handler. The packet offers no timing, state or spoofing advantage, which is exactly why module authors ignore it.

Exploit surface

The content is untrusted server JSON rendered into the tab GUI. Malformed JSON is caught by the chat-component reader, but very long header or footer text and deep component nesting stress the client renderer. No client in the corpus exploits or defends against this; the packet is not a cheating surface.

Server-Side Handling

Server side, the packet is constructed from chat components and pushed via sendPacket; there is no server-side processing of a reply because none exists. The header and footer are typically rebuilt by plugins on a timer or on state change.

Protocol Analysis

Two chat components read via readChatComponent (VarInt length prefix plus JSON UTF-8). The vanilla handler nulls a field when its formatted text length is 0, so an empty string hides the line instead of rendering blank space. Wire cost is the two JSON strings and their length prefixes.

Anti-Cheat Landscape

No anti-cheat measures this packet: it has no timing value and no client response. The only related concern is client-side stability under hostile JSON, which is a client defense topic rather than an anti-cheat one.

implementation Implementation Cases

A pure presentation packet with zero module coverage in the 8 clients: modules is empty because no module file in the corpus references S47. The only non-vanilla hit is the Rise 6.x NetworkAPI script registry listing the class so user scripts can hook it.

Rise 6.1.30 and 6.2.4 expose S47 to scripts through NetworkAPI's packet registry; no event bus in any of the 8 clients has a module handler for it.
Only Rise 6.x differs from vanilla: its NetworkAPI packet list includes S47PacketPlayerListHeaderFooter.class. All other clients carry the unmodified NetHandlerPlayClient handler.

anticheat Anti-Cheat Checks

The corpus for this packet is entirely 'Tab' keyword noise across 2087 lines, with zero references to the packet, its wrapper, or its header and footer fields. The noise splits into tab-complete (C14) processing (Grim ChatA and CrashH, FlopAC WrappedInTabComplete, Artemis TabComplete packet wrappers and registrations, BetterAnticheat ImpossibleCompletionCheck, Photon TabCompleteSupplier), tab-list rendering (Shard TabListOutput, intave TablistMutator for fake players), command tab-completion handlers (NCP commands, Photon InternalCommand, Rammelkast and AntiCheatPlus config tables), and math table code (Hydro ApacheMath and SensitivityTable, intave's ASM library). The packet is pure presentation with no reply and no timing value, so no anticheat measures it.

Wiki Cross-Reference

The vanilla server never sends this packet; it exists for custom servers and plugins to paint extra information above and below the tab list.

Clearing a line is done by sending an empty text component, which the client renders as a hidden line rather than blank space.

MCP 1.8.9 S47PacketPlayerListHeaderFooter implements Packet dispatching to INetHandlerPlayClient.handlePlayerListHeaderFooter; wire serde is readPacketData/writePacketData via readChatComponent.

Cross-checked against minecraft.wiki (CC BY-SA 3.0) for 1.8.9 accuracy.