public PacketType<ServerboundKeepAlivePacket> type() {
28
return CommonPacketTypes.SERVERBOUND_KEEP_ALIVE;
29
}
30
31
public void handle(final ServerCommonPacketListener listener) {
32
listener.handleKeepAlive(this);
33
}
34
35
public long getId() {
36
return this.id;
37
}
38
}
39
Decompiled Minecraft 26.3 source of ServerboundKeepAlivePacket (net/minecraft/network/protocol/common/ServerboundKeepAlivePacket.java) with Mojang official mappings, stored verbatim on the site.