java.lang.Object
meteordevelopment.meteorclient.utils.player.ChatUtils

public class ChatUtils extends Object
  • Constructor Details

    • ChatUtils

      public ChatUtils()
  • Method Details

    • init

      public static void init()
    • getMeteorPrefix

      public static net.minecraft.text.Text getMeteorPrefix()
    • registerCustomPrefix

      public static void registerCustomPrefix(String packageName, Supplier<net.minecraft.text.Text> supplier)
      Registers a custom prefix to be used when calling from a class in the specified package. When null is returned from the supplier the default Meteor prefix is used.
    • unregisterCustomPrefix

      public static void unregisterCustomPrefix(String packageName)
      The package name must match exactly to the one provided through registerCustomPrefix(String, Supplier).
    • forceNextPrefixClass

      public static void forceNextPrefixClass(Class<?> klass)
    • sendPlayerMsg

      public static void sendPlayerMsg(String message)
      Sends the message as if the user typed it into chat.
    • info

      public static void info(String message, Object... args)
    • infoPrefix

      public static void infoPrefix(String prefix, String message, Object... args)
    • warning

      public static void warning(String message, Object... args)
    • warningPrefix

      public static void warningPrefix(String prefix, String message, Object... args)
    • error

      public static void error(String message, Object... args)
    • errorPrefix

      public static void errorPrefix(String prefix, String message, Object... args)
    • sendMsg

      public static void sendMsg(net.minecraft.text.Text message)
    • sendMsg

      public static void sendMsg(String prefix, net.minecraft.text.Text message)
    • sendMsg

      public static void sendMsg(net.minecraft.util.Formatting color, String message, Object... args)
    • sendMsg

      public static void sendMsg(int id, net.minecraft.util.Formatting color, String message, Object... args)
    • sendMsg

      public static void sendMsg(int id, @Nullable @Nullable String prefixTitle, @Nullable @Nullable net.minecraft.util.Formatting prefixColor, net.minecraft.util.Formatting messageColor, String messageContent, Object... args)
    • sendMsg

      public static void sendMsg(int id, @Nullable @Nullable String prefixTitle, @Nullable @Nullable net.minecraft.util.Formatting prefixColor, String messageContent, net.minecraft.util.Formatting messageColor)
    • sendMsg

      public static void sendMsg(int id, @Nullable @Nullable String prefixTitle, @Nullable @Nullable net.minecraft.util.Formatting prefixColor, net.minecraft.text.Text msg)
    • formatCoords

      public static net.minecraft.text.MutableText formatCoords(net.minecraft.util.math.Vec3d pos)