Class ChatVoice

java.lang.Object
my.celium.org.util.ChatVoice

public final class ChatVoice extends Object
The shared message kit with a mod's own tag, so every MyCelium mod reads the same: Pets › ✔ Rex came running. Get one with TextUtil.voice(String) and keep it in a constant.

Message parts are joined in order: strings become body text, components are appended as they are (so names, values and buttons keep their style).

  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.MutableComponent
    caution(Object... parts)
    Warning line: tag + orange bang + message.
    net.minecraft.network.chat.MutableComponent
    fail(Object... parts)
    Error line: tag + red cross + message.
    net.minecraft.network.chat.MutableComponent
    header(String title)
    Header line opening a multi-line reply: tag + bright bold title.
    net.minecraft.network.chat.MutableComponent
    header(String title, String detail)
    Header line with a muted suffix, e.g.
    net.minecraft.network.chat.MutableComponent
    note(Object... parts)
    Info line: tag + message.
    net.minecraft.network.chat.MutableComponent
    ok(Object... parts)
    Success line: tag + green check + message.
    net.minecraft.network.chat.MutableComponent
    Tag › prefix: bold wiki-red tag + faint chevron.
    net.minecraft.network.chat.MutableComponent
    prefixed(net.minecraft.network.chat.Component message)
    Prepends the tag to message.
    tag()
    The tag text, e.g.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • tag

      public String tag()
      The tag text, e.g. "Pets".
    • prefix

      public net.minecraft.network.chat.MutableComponent prefix()
      Tag › prefix: bold wiki-red tag + faint chevron.
    • prefixed

      public net.minecraft.network.chat.MutableComponent prefixed(net.minecraft.network.chat.Component message)
      Prepends the tag to message.
    • note

      public net.minecraft.network.chat.MutableComponent note(Object... parts)
      Info line: tag + message.
    • ok

      public net.minecraft.network.chat.MutableComponent ok(Object... parts)
      Success line: tag + green check + message.
    • fail

      public net.minecraft.network.chat.MutableComponent fail(Object... parts)
      Error line: tag + red cross + message.
    • caution

      public net.minecraft.network.chat.MutableComponent caution(Object... parts)
      Warning line: tag + orange bang + message.
    • header

      public net.minecraft.network.chat.MutableComponent header(String title)
      Header line opening a multi-line reply: tag + bright bold title.
    • header

      public net.minecraft.network.chat.MutableComponent header(String title, String detail)
      Header line with a muted suffix, e.g. header("Your pets", "3").