Class FormatHelper

java.lang.Object
xyz.brassgoggledcoders.patchouliprovider.FormatHelper

public class FormatHelper extends Object
  • Constructor Details

    • FormatHelper

      public FormatHelper()
  • Method Details

    • clearFormatting

      public static String clearFormatting()
    • lineBreak

      public static String lineBreak()
    • newParagraph

      public static String newParagraph()
    • bulletedList

      public static String bulletedList(int nestedLevel, String text)
    • hexCodeColor

      public static String hexCodeColor(int color, String text)
    • colorCode

      public static String colorCode(char lowercaseHexValue, String text)
    • formatCode

      public static String formatCode(char formatCode, String text)
    • internalLink

      public static String internalLink(String entryID, String text)
    • internalLink

      public static String internalLink(String entryID, String anchorName, String text)
    • externalLink

      public static String externalLink(String link, String text)
    • endLink

      public static String endLink()
    • playerName

      public static String playerName()
    • keyValueOfKeybind

      public static String keyValueOfKeybind(net.minecraft.client.KeyMapping keyBinding)
    • tooltip

      public static String tooltip(String tooltip, String text)
    • endTooltip

      public static String endTooltip()
    • sendCommandToServer

      public static String sendCommandToServer(String command, String text)
      Sends the command to the server when text with formatting is clicked
      Parameters:
      command - The command to be sent to the server, without the "/" at the beginning
      Returns:
      The text formatting code for sending a command to the server
    • endCommand

      public static String endCommand()