Estilo MC

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

equals

Return Type: boolean

MCStyle.equals(other as Object) as boolean
ParameterTypeDescription
otherObjectNo Description Provided

getBold

Return Type: boolean

MCStyle.getBold() as boolean
myMCStyle.getBold();

getFontId

Return Type: MCResourceLocation

MCStyle.getFontId() as MCResourceLocation
myMCStyle.getFontId();

Obtener Inserción

Return Type: string

MCStyle.getInsertion() as string
myMCStyle.getInsertion();

getItalic

Return Type: boolean

MCStyle.getItalic() as boolean
myMCStyle.getItalic();

Obfusionado

Return Type: boolean

MCStyle.getObfuscated() as boolean
myMCStyle.getObfuscated();

getStrikethrough

Return Type: boolean

MCStyle.getStrikethrough() as boolean
myMCStyle.getStrikethrough();

getUnderlined

Return Type: boolean

MCStyle.getUnderlined() as boolean
myMCStyle.getUnderlined();

hashCode

Return Type: int

MCStyle.hashCode() as int
myMCStyle.hashCode();

isEmpty

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

Return Type: boolean

MCStyle.isEmpty() as boolean
myMCStyle.isEmpty();

mergeStyle

Return Type: MCStyle

MCStyle.mergeStyle(style as MCStyle) as MCStyle
ParameterTypeDescription
estiloEstilo MCNo Description Provided

setBold

Return Type: MCStyle

MCStyle.setBold(boldIn as Boolean) as MCStyle
ParameterTypeDescription
boldInBooleanNo Description Provided

setColor

Return Type: MCStyle

MCStyle.setColor(colour as int) as MCStyle
ParameterTypeDescription
colourintNo Description Provided

Return Type: MCStyle

MCStyle.setColor(formatting as TextFormatting) as MCStyle
ParameterTypeDescription
formateoTextFormattingNo Description Provided

setFontId

Return Type: MCStyle

MCStyle.setFontId(location as MCResourceLocation) as MCStyle
ParameterTypeDescription
ubicaciónUbicación MCResourceNo Description Provided

setFormatear

Return Type: MCStyle

MCStyle.setFormatting(formatting as TextFormatting) as MCStyle
ParameterTypeDescription
formateoTextFormattingNo Description Provided

setInserción

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

Return Type: MCStyle

MCStyle.setInsertion(insertion as string) as MCStyle
ParameterTypeDescription
inserciónstringNo Description Provided

setItalic

Return Type: MCStyle

MCStyle.setItalic(italic as Boolean) as MCStyle
ParameterTypeDescription
italicBooleanNo Description Provided

setObfuscado

Return Type: MCStyle

MCStyle.setObfuscated(obfuscated as Boolean) as MCStyle
ParameterTypeDescription
obfuscatedBooleanNo Description Provided

setStrikethrough

Return Type: MCStyle

MCStyle.setStrikethrough(strikethrough as Boolean) as MCStyle
ParameterTypeDescription
strikethroughBooleanNo Description Provided

setsin

Return Type: MCStyle

MCStyle.setUnderlined(underlined as Boolean) as MCStyle
ParameterTypeDescription
subrayadoBooleanNo Description Provided

toString

Return Type: string

MCStyle.toString() as string
myMCStyle.toString();