MCStyle
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 at the very top of the file.
import crafttweaker.api.util.text.MCStyle;
Constructors
No Description Provided
new MCStyle() as MCStyle
new MCStyle();
Methods
Return Type: boolean
MCStyle.equals(other as Object) as boolean
Parameter | Type | Description |
---|
other | Object | No Description Provided |
Return Type: boolean
MCStyle.getBold() as boolean
myMCStyle.getBold();
Return Type: MCResourceLocation
MCStyle.getFontId() as MCResourceLocation
myMCStyle.getFontId();
Return Type: string
MCStyle.getInsertion() as string
myMCStyle.getInsertion();
Return Type: boolean
MCStyle.getItalic() as boolean
myMCStyle.getItalic();
Return Type: boolean
MCStyle.getObfuscated() as boolean
myMCStyle.getObfuscated();
Return Type: boolean
MCStyle.getStrikethrough() as boolean
myMCStyle.getStrikethrough();
Return Type: boolean
MCStyle.getUnderlined() as boolean
myMCStyle.getUnderlined();
Return Type: int
MCStyle.hashCode() as int
myMCStyle.hashCode();
Whether or not this style is empty (inherits everything from the parent).
Return Type: boolean
MCStyle.isEmpty() as boolean
myMCStyle.isEmpty();
Return Type: MCStyle
MCStyle.mergeStyle(style as MCStyle) as MCStyle
Parameter | Type | Description |
---|
style | MCStyle | No Description Provided |
Return Type: MCStyle
MCStyle.setBold(boldIn as Boolean) as MCStyle
Parameter | Type | Description |
---|
boldIn | Boolean | No Description Provided |
Return Type: MCStyle
MCStyle.setColor(colour as int) as MCStyle
Parameter | Type | Description |
---|
colour | int | No Description Provided |
Return Type: MCStyle
MCStyle.setColor(formatting as TextFormatting) as MCStyle
Parameter | Type | Description |
---|
formatting | TextFormatting | No Description Provided |
Return Type: MCStyle
MCStyle.setFontId(location as MCResourceLocation) as MCStyle
Return Type: MCStyle
MCStyle.setFormatting(formatting as TextFormatting) as MCStyle
Parameter | Type | Description |
---|
formatting | TextFormatting | No Description Provided |
Set a text to be inserted into Chat when the component is shift-clicked
Return Type: MCStyle
MCStyle.setInsertion(insertion as string) as MCStyle
Parameter | Type | Description |
---|
insertion | string | No Description Provided |
Return Type: MCStyle
MCStyle.setItalic(italic as Boolean) as MCStyle
Parameter | Type | Description |
---|
italic | Boolean | No Description Provided |
Return Type: MCStyle
MCStyle.setObfuscated(obfuscated as Boolean) as MCStyle
Parameter | Type | Description |
---|
obfuscated | Boolean | No Description Provided |
Return Type: MCStyle
MCStyle.setStrikethrough(strikethrough as Boolean) as MCStyle
Parameter | Type | Description |
---|
strikethrough | Boolean | No Description Provided |
Return Type: MCStyle
MCStyle.setUnderlined(underlined as Boolean) as MCStyle
Parameter | Type | Description |
---|
underlined | Boolean | No Description Provided |
Return Type: string
MCStyle.toString() as string
myMCStyle.toString();