Merge remote-tracking branch 'origin/master'

This commit is contained in:
0x150 2021-12-18 19:30:17 +01:00
commit bf07ddfabe

View file

@ -3,6 +3,7 @@ package me.x150.sipprivate.util;
import net.minecraft.client.MinecraftClient;
import net.minecraft.network.MessageType;
import net.minecraft.text.Text;
import net.minecraft.util.Formatting;
public class ChatUtil {
/**
@ -13,4 +14,8 @@ public class ChatUtil {
public static void send(final String s) {
MinecraftClient.getInstance().inGameHud.addChatMessage(MessageType.SYSTEM, Text.of(s), MinecraftClient.getInstance().player.getUuid());
}
public static void sendFormatted(String msg){
MinecraftClient.getInstance().inGameHud.addChatMessage(MessageType.SYSTEM, Text.of(Formatting.GRAY + "[" + Formatting.DARK_GRAY + "SipClient" + Formatting.GRAY + "] " + Formatting.RESET + msg), MinecraftClient.getInstance().player.getUuid());
}
}