Class FormatHelper
java.lang.Object
xyz.brassgoggledcoders.patchouliprovider.FormatHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbulletedList(int nestedLevel, String text) static Stringstatic Stringstatic Stringstatic StringendLink()static Stringstatic StringexternalLink(String link, String text) static StringformatCode(char formatCode, String text) static StringhexCodeColor(int color, String text) static StringinternalLink(String entryID, String text) static StringinternalLink(String entryID, String anchorName, String text) static StringkeyValueOfKeybind(net.minecraft.client.KeyMapping keyBinding) static Stringstatic Stringstatic Stringstatic StringsendCommandToServer(String command, String text) Sends the command to the server when text with formatting is clickedstatic String
-
Constructor Details
-
FormatHelper
public FormatHelper()
-
-
Method Details
-
clearFormatting
-
lineBreak
-
newParagraph
-
bulletedList
-
hexCodeColor
-
colorCode
-
formatCode
-
internalLink
-
internalLink
-
externalLink
-
endLink
-
playerName
-
keyValueOfKeybind
-
tooltip
-
endTooltip
-
sendCommandToServer
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
-