MCStyle

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.

crafttweaker.api.util.text.MCStyle

Constructors

new crafttweaker.api.util.text.MCStyle();

Methods

equals

Return type: boolean

myMCStyle.equals(other as Object);
ParameterTypeDescription
otherObjectNo description provided

getBold

Return type: boolean

myMCStyle.getBold();

getFontId

Return type: crafttweaker.api.util.MCResourceLocation

myMCStyle.getFontId();

getInsertion

Return type: String

myMCStyle.getInsertion();

getItalic

Return type: boolean

myMCStyle.getItalic();

getObfuscated

Return type: boolean

myMCStyle.getObfuscated();

getStrikethrough

Return type: boolean

myMCStyle.getStrikethrough();

getUnderlined

Return type: boolean

myMCStyle.getUnderlined();

hashCode

Return type: int

myMCStyle.hashCode();

isEmpty

Whether or not this style is empty (inherits everything from the parent).

Return type: boolean

myMCStyle.isEmpty();

mergeStyle

Return type: crafttweaker.api.util.text.MCStyle

myMCStyle.mergeStyle(style as crafttweaker.api.util.text.MCStyle);
ParameterTypeDescription
stylecrafttweaker.api.util.text.MCStyleNo description provided

setBold

Return type: crafttweaker.api.util.text.MCStyle

myMCStyle.setBold(boldIn as Boolean);
ParameterTypeDescription
boldInBooleanNo description provided

setColor

Return type: crafttweaker.api.util.text.MCStyle

myMCStyle.setColor(formatting as crafttweaker.api.text.TextFormatting);
ParameterTypeDescription
formattingcrafttweaker.api.text.TextFormattingNo description provided

Return type: crafttweaker.api.util.text.MCStyle

myMCStyle.setColor(colour as int);
ParameterTypeDescription
colourintNo description provided

setFontId

Return type: crafttweaker.api.util.text.MCStyle

myMCStyle.setFontId(location as crafttweaker.api.util.MCResourceLocation);
ParameterTypeDescription
locationcrafttweaker.api.util.MCResourceLocationNo description provided

setFormatting

Return type: crafttweaker.api.util.text.MCStyle

myMCStyle.setFormatting(formatting as crafttweaker.api.text.TextFormatting);
ParameterTypeDescription
formattingcrafttweaker.api.text.TextFormattingNo description provided

setInsertion

Set a text to be inserted into Chat when the component is shift-clicked

Return type: crafttweaker.api.util.text.MCStyle

myMCStyle.setInsertion(insertion as String);
ParameterTypeDescription
insertionStringNo description provided

setItalic

Return type: crafttweaker.api.util.text.MCStyle

myMCStyle.setItalic(italic as Boolean);
ParameterTypeDescription
italicBooleanNo description provided

setObfuscated

Return type: crafttweaker.api.util.text.MCStyle

myMCStyle.setObfuscated(obfuscated as Boolean);
ParameterTypeDescription
obfuscatedBooleanNo description provided

setStrikethrough

Return type: crafttweaker.api.util.text.MCStyle

myMCStyle.setStrikethrough(strikethrough as Boolean);
ParameterTypeDescription
strikethroughBooleanNo description provided

setUnderlined

Return type: crafttweaker.api.util.text.MCStyle

myMCStyle.setUnderlined(underlined as Boolean);
ParameterTypeDescription
underlinedBooleanNo description provided

Return type: crafttweaker.api.util.text.MCStyle

myMCStyle.setUnderlined(underlined as boolean);
ParameterTypeDescription
underlinedbooleanNo description provided

toString

Return type: String

myMCStyle.toString();