minecraft-src/net/minecraft/util/profiling/jfr/stats/PacketIdentification.java
2025-07-04 01:41:11 +03:00

9 lines
380 B
Java

package net.minecraft.util.profiling.jfr.stats;
import jdk.jfr.consumer.RecordedEvent;
public record PacketIdentification(String direction, String protocolId, String packetId) {
public static PacketIdentification from(RecordedEvent event) {
return new PacketIdentification(event.getString("packetDirection"), event.getString("protocolId"), event.getString("packetId"));
}
}