14 lines
430 B
Java
14 lines
430 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
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"));
|
|
}
|
|
}
|
|
|