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