Class ChatUtils
java.lang.Object
meteordevelopment.meteorclient.utils.player.ChatUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voiderrorPrefix(String prefix, String message, Object... args) static voidforceNextPrefixClass(Class<?> klass) static net.minecraft.text.MutableTextformatCoords(net.minecraft.util.math.Vec3d pos) static net.minecraft.text.Textstatic voidstatic voidinfoPrefix(String prefix, String message, Object... args) static voidinit()static voidregisterCustomPrefix(String packageName, Supplier<net.minecraft.text.Text> 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.util.Formatting prefixColor, String messageContent, net.minecraft.util.Formatting messageColor) static voidsendMsg(int id, @Nullable String prefixTitle, @Nullable net.minecraft.util.Formatting prefixColor, net.minecraft.text.Text msg) static voidsendMsg(int id, @Nullable String prefixTitle, @Nullable net.minecraft.util.Formatting prefixColor, net.minecraft.util.Formatting messageColor, String messageContent, Object... args) static voidstatic voidstatic voidsendMsg(net.minecraft.text.Text message) static voidstatic voidsendPlayerMsg(String message) 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)
-
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
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. -
info
-
infoPrefix
-
warning
-
warningPrefix
-
error
-
errorPrefix
-
sendMsg
public static void sendMsg(net.minecraft.text.Text message) -
sendMsg
-
sendMsg
-
sendMsg
-
sendMsg
-
sendMsg
-
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)
-