Class ChatUtils
java.lang.Object
meteordevelopment.meteorclient.utils.player.ChatUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voiderrorPrefix(String prefix, String message, Object... args) static voidforceNextPrefixClass(Class<?> klass) static net.minecraft.network.chat.MutableComponentformatCoords(net.minecraft.world.phys.Vec3 pos) static net.minecraft.network.chat.Componentstatic voidstatic voidinfoPrefix(String prefix, String message, Object... args) static voidinit()static voidregisterCustomPrefix(String packageName, Supplier<net.minecraft.network.chat.Component> supplier) Registers a custom prefix to be used when calling from a class in the specified package.static voidsendMsg(int id, @Nullable String prefixTitle, @Nullable net.minecraft.ChatFormatting prefixColor, String messageContent, net.minecraft.ChatFormatting messageColor) static voidsendMsg(int id, @Nullable String prefixTitle, @Nullable net.minecraft.ChatFormatting prefixColor, net.minecraft.ChatFormatting messageColor, String messageContent, Object... args) static voidsendMsg(int id, @Nullable String prefixTitle, @Nullable net.minecraft.ChatFormatting prefixColor, net.minecraft.network.chat.Component msg) static voidstatic voidstatic voidstatic voidsendMsg(net.minecraft.network.chat.Component message) static voidsendPlayerMsg(String message) Sends the message as if the user typed it into chat and adds it to the chat history.static voidsendPlayerMsg(String message, boolean addToHistory) Sends the message as if the user typed it into chat.static voidunregisterCustomPrefix(String packageName) The package name must match exactly to the one provided throughregisterCustomPrefix(String, Supplier).static voidstatic voidwarningPrefix(String prefix, String message, Object... args)
-
Method Details
-
init
public static void init() -
getMeteorPrefix
public static net.minecraft.network.chat.Component getMeteorPrefix() -
registerCustomPrefix
-
unregisterCustomPrefix
The package name must match exactly to the one provided throughregisterCustomPrefix(String, Supplier). -
forceNextPrefixClass
-
sendPlayerMsg
Sends the message as if the user typed it into chat and adds it to the chat history. -
sendPlayerMsg
Sends the message as if the user typed it into chat. -
info
-
infoPrefix
-
warning
-
warningPrefix
-
error
-
errorPrefix
-
sendMsg
public static void sendMsg(net.minecraft.network.chat.Component message) -
sendMsg
-
sendMsg
-
sendMsg
-
sendMsg
-
sendMsg
-
sendMsg
public static void sendMsg(int id, @Nullable String prefixTitle, @Nullable net.minecraft.ChatFormatting prefixColor, net.minecraft.network.chat.Component msg) -
formatCoords
public static net.minecraft.network.chat.MutableComponent formatCoords(net.minecraft.world.phys.Vec3 pos)
-