0x45 S45PacketTitle

Displays titles/subtitles on screen with animation timing. Actions: TITLE, SUBTITLE, TIMES, CLEAR, RESET.

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

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

playerguititle
Complete 6/8

Fields

FieldTypeDescription
actionVarInt Enum0=TITLE, 1=SUBTITLE, 2=TIMES, 3=CLEAR, 4=RESET
titleTextIChatComponent (JSON)Title text (for TITLE/SUBTITLE)
fadeInTimeintFade-in ticks (for TIMES)
stayTimeintDisplay ticks
fadeOutTimeintFade-out ticks

Wire Encoding

FieldTypeNotes
ActionVarInt Enum0=title, 1=subtitle, 2=times, 3=clear, 4=reset
Text (if title/sub)Chat Component (JSON)
Fade In (if times)intTicks
Stay (if times)intTicks
Fade Out (if times)intTicks

MCP References

MCPNetHandlerPlayClient.handleTitle()

Handler Interface

HNDINetHandlerPlayClient

Vanilla Source

S45PacketTitle.java147 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 S45PacketTitle implements Packet<INetHandlerPlayClient>
10
{
11
    private S45PacketTitle.Type type;
12
    private IChatComponent message;
13
    private int fadeInTime;
14
    private int displayTime;
15
    private int fadeOutTime;
16
17
    public S45PacketTitle()
18
    {
19
    }
20
21
    public S45PacketTitle(S45PacketTitle.Type type, IChatComponent message)
22
    {
23
        this(type, message, -1, -1, -1);
24
    }
25
26
    public S45PacketTitle(int fadeInTime, int displayTime, int fadeOutTime)
27
    {
28
        this(S45PacketTitle.Type.TIMES, (IChatComponent)null, fadeInTime, displayTime, fadeOutTime);
29
    }
30
31
    public S45PacketTitle(S45PacketTitle.Type type, IChatComponent message, int fadeInTime, int displayTime, int fadeOutTime)
32
    {
33
        this.type = type;
34
        this.message = message;
35
        this.fadeInTime = fadeInTime;
36
        this.displayTime = displayTime;
37
        this.fadeOutTime = fadeOutTime;
38
    }
39
40
    /**
41
     * Reads the raw packet data from the data stream.
42
     */
43
    public void readPacketData(PacketBuffer buf) throws IOException
44
    {
45
        this.type = (S45PacketTitle.Type)buf.readEnumValue(S45PacketTitle.Type.class);
46
47
        if (this.type == S45PacketTitle.Type.TITLE || this.type == S45PacketTitle.Type.SUBTITLE)
48
        {
49
            this.message = buf.readChatComponent();
50
        }
51
52
        if (this.type == S45PacketTitle.Type.TIMES)
53
        {
54
            this.fadeInTime = buf.readInt();
55
            this.displayTime = buf.readInt();
56
            this.fadeOutTime = buf.readInt();
57
        }
58
    }
59
60
    /**
61
     * Writes the raw packet data to the data stream.
62
     */
63
    public void writePacketData(PacketBuffer buf) throws IOException
64
    {
65
        buf.writeEnumValue(this.type);
66
67
        if (this.type == S45PacketTitle.Type.TITLE || this.type == S45PacketTitle.Type.SUBTITLE)
68
        {
69
            buf.writeChatComponent(this.message);
70
        }
71
72
        if (this.type == S45PacketTitle.Type.TIMES)
73
        {
74
            buf.writeInt(this.fadeInTime);
75
            buf.writeInt(this.displayTime);
76
            buf.writeInt(this.fadeOutTime);
77
        }
78
    }
79
80
    /**
81
     * Passes this Packet on to the NetHandler for processing.
82
     */
83
    public void processPacket(INetHandlerPlayClient handler)
84
    {
85
        handler.handleTitle(this);
86
    }
87
88
    public S45PacketTitle.Type getType()
89
    {
90
        return this.type;
91
    }
92
93
    public IChatComponent getMessage()
94
    {
95
        return this.message;
96
    }
97
98
    public int getFadeInTime()
99
    {
100
        return this.fadeInTime;
101
    }
102
103
    public int getDisplayTime()
104
    {
105
        return this.displayTime;
106
    }
107
108
    public int getFadeOutTime()
109
    {
110
        return this.fadeOutTime;
111
    }
112
113
    public static enum Type
114
    {
115
        TITLE,
116
        SUBTITLE,
117
        TIMES,
118
        CLEAR,
119
        RESET;
120
121
        public static S45PacketTitle.Type byName(String name)
122
        {
123
            for (S45PacketTitle.Type s45packettitle$type : values())
124
            {
125
                if (s45packettitle$type.name().equalsIgnoreCase(name))
126
                {
127
                    return s45packettitle$type;
128
                }
129
            }
130
131
            return TITLE;
132
        }
133
134
        public static String[] getNames()
135
        {
136
            String[] astring = new String[values().length];
137
            int i = 0;
138
139
            for (S45PacketTitle.Type s45packettitle$type : values())
140
            {
141
                astring[i++] = s45packettitle$type.name().toLowerCase();
142
            }
143
144
            return astring;
145
        }
146
    }
147
}

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

Deep Dive

Role in the protocol

Screen title display with five actions: TITLE, SUBTITLE, TIMES, CLEAR and RESET. The vanilla server produces it from the /title command (CommandTitle), and plugins use it for game announcements. TITLE and SUBTITLE carry an IChatComponent, TIMES carries three ints (fade-in, stay, fade-out in ticks), and CLEAR and RESET carry no text. The client handler routes everything into GuiIngame.displayTitle, which owns the fade state machine.

Vanilla handling

handleTitle reads the type, formats the component text, and calls ingameGUI.displayTitle(title, subtitle, fadeIn, displayTime, fadeOut). GuiIngame stores the strings plus the three timings and animates alpha over ticks. RESET clears both text slots and restores default timings (10/70/20); CLEAR hides immediately. The packet is clientbound-only and stateless server-side: the server tracks nothing about what the client currently displays.

Why clients touch it

Two module hits in the corpus. Rise 6.1.30 and 6.2.4 ship RueSessionStats, a SessionStats HUD mode that listens on PacketReceiveEvent, strips control codes from the title message, and increments its wins counter when the text equals 'VICTORY!' (Hypixel game-win detection). November Recode 2.0's AutoPlayModule pattern-matches S45PacketTitle inside its packet-in handler but only null-checks the message; the branch carries no behaviour, so the title serves as a guard against a null component rather than a signal. Anti-title modules that suppress or rewrite titles are common in other clients, but none of the 10 reference clients has one: the corpus shows no cancel-based title handling.

Exploit surface

The text is a full IChatComponent parsed client-side, so it shares the component-parsing attack surface of S02PacketChat, including formatting codes and arbitrarily nested JSON. The handler calls getFormattedText() with no length limit beyond the component parser's own. For module authors the useful property is that titles are a timing-accurate game-state signal: Hypixel sends VICTORY! exactly once per win, which is why the win counter keys off it rather than chat.

Server-Side Handling

CommandTitle constructs the packet per /title syntax: TIMES from three parsed ints, TITLE and SUBTITLE with a ChatComponentProcessor-processed component, CLEAR and RESET with a null component. The server keeps no per-client title state; each packet is fire-and-forget. Plugins such as Hypixel send titles directly with their own timing sequences, typically TIMES followed by TITLE.

Protocol Analysis

Type is a VarInt enum. TITLE and SUBTITLE append an IChatComponent (JSON); TIMES appends three ints; CLEAR and RESET append nothing. readPacketData reads the component only for TITLE and SUBTITLE and the three ints only for TIMES. The component is null on the wire for TIMES, CLEAR and RESET, and handlers must tolerate that; RueSessionStats and November's AutoPlayModule both null-guard the component before use.

Anti-Cheat Landscape

No anti-cheat involvement: titles are cosmetic, clientbound and unacknowledged. Suppressing or rewriting them cannot affect server-side validation. The only measurable behaviour is client rendering, which is invisible to the server.

implementation Implementation Cases

Screen title state machine fed by /title and plugin announcements. Rise's RueSessionStats HUD mode uses the VICTORY! title as a win signal for its session stats counter; November Recode 2.0's AutoPlayModule pattern-matches S45PacketTitle with a null-message guard only. No anti-title module exists in the 10 clients.

RueSessionStats (Rise 6.1.30, Rise 6.2.4)

Session stats HUD overlay that counts kills and wins; uses S45PacketTitle to detect Hypixel game wins.

A Mode render module. onPreMotionEvent refreshes the elapsed-time string every 20 ticks; onKill increments the kill counter; onPacketReceiveEvent checks each S45PacketTitle, strips control codes from getMessage().getUnformattedText(), and increments wins on an exact 'VICTORY!' match. onServerJoin resets the session; the overlay draws through the client's layered render system with a draggable position.

Source: Rise 6.1.30, com/alan/clients/module/impl/render/sessioninfo/RueSessionStats.java

Vanilla hook: PacketReceiveEvent (com.alan.clients.event.impl.packet.PacketReceiveEvent).
None. The module only reads clientbound state and draws HUD text; nothing serverbound is altered, so there is no flag surface. A false-positive win count is a client-side cosmetic issue, not a detection risk.
Variations: Rise 6.2.4 ships the identical file under Client-release2/Client/src/main/java with the same package path. Rise 5.99 has no S45 reference at all; the module exists only in the 6.x component-based module tree.
AutoPlayModule (play again) (November Recode 2.0)

Automatically re-queue for the next game after a Hypixel or BlocksMC match; the S45PacketTitle branch only guards against a null title component.

An EventPacket.In listener on November's event bus. In HYPIXEL mode it parses S02PacketChat siblings for a 'Click here!' RUN_COMMAND click event after a win or death message, stores the command, and sends it via addToSendQueueSilent after the configured delay. The S45PacketTitle branch is a match with a null-message guard and no further action, so the title path is effectively inert; the module's real signal is chat.

Source: November Recode 2.0, feature/module/impl/player/AutoPlayModule.java

Vanilla hook: EventPacket.In listener (November listener bus).
None for the title branch. The module sends a legitimate chat command after a real delay, indistinguishable from a player typing it manually; the silent send queue bypasses the client's own event pipeline but not server validation.
Variations: Rise's RueSessionStats reads titles as a win counter; November's AutoPlayModule matches S45PacketTitle but performs no title-driven action. No other client in the corpus references S45.
PacketReceiveEvent with an instanceof check and a null-message guard is the pattern RueSessionStats uses; no client in the corpus cancels or rewrites the packet.

anticheat Anti-Cheat Checks

No anticheat processes the title packet. The corpus is 'Title' keyword noise: inventory GUI titles (Hydro menus, TruthfulAC GUI menus, NCP InventoryListener, Arc InventoryListener, MinecraftAntiCheat MenuEvents), scoreboard and sidebar output (Shard), discord webhook labels (Negativity, FlopAC), and book-inventory code (Grim ExploitB, Peyang Books). The only packet-shaped hits are Artemis's five wrapper interfaces (PacketPlayServerTitle, TitlesClear, TitlesSetAnimation, TitlesSetSubtitle, TitlesSetText) plus its PacketRepository registration (SERVER_PLAY + 75), and the Negativity PacketType TITLE constant; none of these consume or validate the packet. Titles are cosmetic, unacknowledged and carry no timing or state the server re-checks, so there is nothing to flag.

Wiki Cross-Reference

The fade-out value is the number of ticks spent fading out, not the time at which fading starts, mirroring the fade-in and stay semantics.

MCP 1.8.9 S45PacketTitle implements Packet dispatching to INetHandlerPlayClient.handleTitle; wire serde is readPacketData/writePacketData via readChatComponent, readEnumValue, readInt.

1.8.9 callers: CommandTitle.processCommand sends new S45PacketTitle (line 83): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/command/CommandTitle.java

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