Okay, so you are talking about this?
if (n == 257 || n == 335) {
String string = this.input.getValue().trim();
if (!string.isEmpty()) {
this.sendMessage(string);
}
this.minecraft.setScreen(null);
return true;
}
If yes, this `sendMessage` refers to:
this.minecraft.player.chat(string);
It is this function, that I need to use in my code?