We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c64dda5 commit fa659d2Copy full SHA for fa659d2
src/main/java/dev/hause/squeakerbot/util/ChatUtil.java
@@ -0,0 +1,14 @@
1
+package dev.hause.squeakerbot.util;
2
+
3
+import net.minecraft.client.Minecraft;
4
+import net.minecraft.network.play.client.CPacketChatMessage;
5
6
+public class ChatUtil {
7
8
+ static Minecraft mc = Minecraft.getMinecraft();
9
10
+ public static void sendChatMessage(String message) {
11
+ mc.player.connection.sendPacket(new CPacketChatMessage(message));
12
+ }
13
14
+}
0 commit comments