dfghjkl;'
This commit is contained in:
parent
baf8d849b6
commit
412cabff8a
23 changed files with 706 additions and 18 deletions
|
@ -1,6 +1,29 @@
|
|||
package me.kawaiizenbo.moonlight.util;
|
||||
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.util.Formatting;
|
||||
|
||||
public class ChatUtils
|
||||
{
|
||||
|
||||
private static MinecraftClient mc = MinecraftClient.getInstance();
|
||||
|
||||
public static void sendMsg(String message)
|
||||
{
|
||||
sendMsg(null, null, Text.literal(message));
|
||||
}
|
||||
|
||||
public static void sendMsg(@Nullable String prefixTitle, @Nullable Formatting prefixColor, Text msg)
|
||||
{
|
||||
if (mc.world == null) return;
|
||||
|
||||
//Text message = Text.literal("");
|
||||
//message.append(CommandManager.get().getPrefix());
|
||||
//if (prefixTitle != null) message.append(CommandManager.get().getPrefix());
|
||||
//message.append(msg);
|
||||
|
||||
mc.inGameHud.getChatHud().addMessage(msg);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,10 +21,10 @@ public class ColorUtils
|
|||
public static String yellow = "\247e";
|
||||
public static String white = "\247f";
|
||||
|
||||
public static String underline = "\247u";
|
||||
public static String underline = "\247n";
|
||||
public static String bold = "\247l";
|
||||
public static String italic = "\247o";
|
||||
public static String strikethrough = "\247m";
|
||||
public static String cipher = "\247k";
|
||||
public static String obfuscated = "\247k";
|
||||
public static String reset = "\247r";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue