PacketSentEvent .java

net.minecraft.util.profiling.jfr.event.PacketSentEvent (class): members: NAME, TYPE. strings: "Network Packet Sent", "minecraft.PacketSent". ann: @Label.

net.minecraft.util.profiling.jfr.eventclass18 linescommonextends PacketEvent651 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (2)

NAME
TYPE

String literals (2)

"minecraft.PacketSent"
"Network Packet Sent"

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

PacketSentEvent.java18 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.profiling.jfr.event;
2
3
import java.net.SocketAddress;
4
import jdk.jfr.EventType;
5
import jdk.jfr.Label;
6
import jdk.jfr.Name;
7
8
@Name("minecraft.PacketSent")
9
@Label("Network Packet Sent")
10
public class PacketSentEvent extends PacketEvent {
11
	public static final String NAME = "minecraft.PacketSent";
12
	public static final EventType TYPE = EventType.getEventType(PacketSentEvent.class);
13
14
	public PacketSentEvent(final String protocolId, final String packetDirection, final String packetId, final SocketAddress remoteAddress, final int writtenBytes) {
15
		super(protocolId, packetDirection, packetId, remoteAddress, writtenBytes);
16
	}
17
}
18

Decompiled Minecraft 26.3 source of PacketSentEvent (net/minecraft/util/profiling/jfr/event/PacketSentEvent.java) with Mojang official mappings, stored verbatim on the site.