0x45 S45PacketTitle
Displays titles/subtitles on screen with animation timing. Actions: TITLE, SUBTITLE, TIMES, CLEAR, RESET.
Fields
| Field | Type | Description |
|---|---|---|
| action | VarInt Enum | 0=TITLE, 1=SUBTITLE, 2=TIMES, 3=CLEAR, 4=RESET |
| titleText | IChatComponent (JSON) | Title text (for TITLE/SUBTITLE) |
| fadeInTime | int | Fade-in ticks (for TIMES) |
| stayTime | int | Display ticks |
| fadeOutTime | int | Fade-out ticks |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Action | VarInt Enum | 0=title, 1=subtitle, 2=times, 3=clear, 4=reset |
| Text (if title/sub) | Chat Component (JSON) | |
| Fade In (if times) | int | Ticks |
| Stay (if times) | int | Ticks |
| Fade Out (if times) | int | Ticks |
MCP References
MCP
NetHandlerPlayClient.handleTitle()Handler Interface
HND
INetHandlerPlayClientimplementation Implementation Cases
Title
(Gugustus, Tenacity 6.0)
Cancel or modify title/subtitle messages.
if (event.getPacket() instanceof S45PacketTitle) event.setCancelled(true);AntiTitle
(Gugustus, Tenacity 6.0)
Cancel or modify title/subtitle messages.
if (event.getPacket() instanceof S45PacketTitle) event.setCancelled(true);