mirror of
https://github.com/Miasmusa/Shadow.git
synced 2024-11-15 03:14:54 -05:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
bf07ddfabe
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue