ClientCommandCompat
object ClientCommandCompat
Client-side command send, spanning the MC 1.19 "secure chat" rework by resolving the moved method reflectively at runtime. The client's command-send path was split at 1.19:
>=1.19: net.minecraft.client.multiplayer.ClientPacketListener.sendCommand(String) — command WITHOUT a leading/(a dedicated, signable command packet).<=1.18.2: net.minecraft.client.player.LocalPlayer.chat(String) — command sent as a chat line WITH a leading/(the server parses it).
Method names are reflective strings, so each is mapped to the runtime namespace via Mappings.