Klasse ChatUtil

java.lang.Object
com.viaversion.viafabricplus.util.ChatUtil

public final class ChatUtil extends Object
This class contains methods to send messages to the player with the ViaFabricPlus prefix
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final String
     
    static final net.minecraft.network.chat.Component
     
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static net.minecraft.network.chat.Component
    prefixText(String message)
    Prefixes the message with the ViaFabricPlus prefix
    static net.minecraft.network.chat.Component
    prefixText(net.minecraft.network.chat.Component message)
    Prefixes the message with the ViaFabricPlus prefix
    static void
    sendPrefixedMessage(net.minecraft.network.chat.Component message)
    Sends a prefixed message to the player
    static String
    uncoverTranslationKey(net.minecraft.network.chat.Component text)
     

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • PREFIX

      public static final String PREFIX
    • PREFIX_TEXT

      public static final net.minecraft.network.chat.Component PREFIX_TEXT
  • Konstruktordetails

    • ChatUtil

      public ChatUtil()
  • Methodendetails

    • prefixText

      public static net.minecraft.network.chat.Component prefixText(String message)
      Prefixes the message with the ViaFabricPlus prefix
      Parameter:
      message - The message to send
      Gibt zurück:
      The prefixed message
    • prefixText

      public static net.minecraft.network.chat.Component prefixText(net.minecraft.network.chat.Component message)
      Prefixes the message with the ViaFabricPlus prefix
      Parameter:
      message - The message to send
      Gibt zurück:
      The prefixed message
    • sendPrefixedMessage

      public static void sendPrefixedMessage(net.minecraft.network.chat.Component message)
      Sends a prefixed message to the player
      Parameter:
      message - The message to send
    • uncoverTranslationKey

      public static String uncoverTranslationKey(net.minecraft.network.chat.Component text)
      Parameter:
      text - The text to uncover
      Gibt zurück:
      The translation key of the text