MCСтиль

Импорт класса

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.

ZenScript
Copy
import crafttweaker.api.util.text.MCStyle;

Constructors

No Description Provided

ZenScript
Copy
new MCStyle() as MCStyle
new MCStyle();

Methods

equals

Return Type: boolean

ZenScript
Copy
MCStyle.equals(other as Object) as boolean
ПараметрТипDescription
otherObjectNo Description Provided
getBold

Return Type: boolean

ZenScript
Copy
MCStyle.getBold() as boolean
myMCStyle.getBold();
getFontId

Return Type: MCResourceLocation

ZenScript
Copy
MCStyle.getFontId() as MCResourceLocation
myMCStyle.getFontId();
getInsertion

Return Type: string

ZenScript
Copy
MCStyle.getInsertion() as string
myMCStyle.getInsertion();
getItalic

Return Type: boolean

ZenScript
Copy
MCStyle.getItalic() as boolean
myMCStyle.getItalic();
getObfuscated

Return Type: boolean

ZenScript
Copy
MCStyle.getObfuscated() as boolean
myMCStyle.getObfuscated();
getStrikethrough

Return Type: boolean

ZenScript
Copy
MCStyle.getStrikethrough() as boolean
myMCStyle.getStrikethrough();
getUnderlined

Return Type: boolean

ZenScript
Copy
MCStyle.getUnderlined() as boolean
myMCStyle.getUnderlined();
hashCode

Return Type: int

ZenScript
Copy
MCStyle.hashCode() as int
myMCStyle.hashCode();
isEmpty

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

Return Type: boolean

ZenScript
Copy
MCStyle.isEmpty() as boolean
myMCStyle.isEmpty();
mergeStyle

Return Type: MCStyle

ZenScript
Copy
MCStyle.mergeStyle(style as MCStyle) as MCStyle
ПараметрТипDescription
стильMCСтильNo Description Provided
setBold

Return Type: MCStyle

ZenScript
Copy
MCStyle.setBold(boldIn as Boolean) as MCStyle
ПараметрТипDescription
boldInBooleanNo Description Provided
setColor

Return Type: MCStyle

ZenScript
Copy
MCStyle.setColor(colour as int) as MCStyle
ПараметрТипDescription
colourintNo Description Provided
setColor

Return Type: MCStyle

ZenScript
Copy
MCStyle.setColor(formatting as TextFormatting) as MCStyle
ПараметрТипDescription
форматированиеTextFormattingNo Description Provided
setFontId

Return Type: MCStyle

ZenScript
Copy
MCStyle.setFontId(location as MCResourceLocation) as MCStyle
ПараметрТипDescription
местоположениеРасположение MCResource-ресурсовNo Description Provided
setFormatting

Return Type: MCStyle

ZenScript
Copy
MCStyle.setFormatting(formatting as TextFormatting) as MCStyle
ПараметрТипDescription
форматированиеTextFormattingNo Description Provided
setInsertion

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

Return Type: MCStyle

ZenScript
Copy
MCStyle.setInsertion(insertion as string) as MCStyle
ПараметрТипDescription
вставкаstringNo Description Provided
setItalic

Return Type: MCStyle

ZenScript
Copy
MCStyle.setItalic(italic as Boolean) as MCStyle
ПараметрТипDescription
italicBooleanNo Description Provided
setObfuscated

Return Type: MCStyle

ZenScript
Copy
MCStyle.setObfuscated(obfuscated as Boolean) as MCStyle
ПараметрТипDescription
obfuscatedBooleanNo Description Provided
setStrikethrough

Return Type: MCStyle

ZenScript
Copy
MCStyle.setStrikethrough(strikethrough as Boolean) as MCStyle
ПараметрТипDescription
strikethroughBooleanNo Description Provided
setUnderlined

Return Type: MCStyle

ZenScript
Copy
MCStyle.setUnderlined(underlined as Boolean) as MCStyle
ПараметрТипDescription
подчеркнутоBooleanNo Description Provided
toString

Return Type: string

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