LegacyProtocolUtils .java
net.minecraft.server.network.LegacyProtocolUtils (class): members: CUSTOM_PAYLOAD_PACKET_PING_CHANNEL, GET_INFO_PACKET_VERSION_1, CUSTOM_PAYLOAD_PACKET_ID.
File
API Surface (2)
void writeLegacyString(final ByteBuf toSend, final String str)String readLegacyString(final ByteBuf msg)Fields & Constants (6)
CUSTOM_PAYLOAD_PACKET_IDCUSTOM_PAYLOAD_PACKET_PING_CHANNELGET_INFO_PACKET_IDGET_INFO_PACKET_VERSION_1DISCONNECT_PACKET_IDFAKE_PROTOCOL_VERSIONString literals (1)
"MC|PingHost"Same Package (22)
Full Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
Decompiled Minecraft 26.3 source of LegacyProtocolUtils (net/minecraft/server/network/LegacyProtocolUtils.java) with Mojang official mappings, stored verbatim on the site.