Importing the class

Link to 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.

ZenScript
Copy
import crafttweaker.api.text.Style;

Name: empty

Return Type: Style

ZenScript
Copy
// Style.empty() as Style

Style.empty();

Link to g--1

Name: applyFormat

Return Type: Style

ZenScript
Copy
Style.applyFormat(format as ChatFormatting) as Style
ParameterTypeDescription
Parameter
format
Type
ChatFormatting
Description
No Description Provided

Link to g--2

Name: applyFormats

Return Type: Style

ZenScript
Copy
Style.applyFormats(formattings as ChatFormatting[]) as Style
ParameterTypeDescription
Parameter
formattings
Type
ChatFormatting[]
Description
No Description Provided

Link to g--3

Name: applyLegacyFormat

Return Type: Style

ZenScript
Copy
Style.applyLegacyFormat(format as ChatFormatting) as Style
ParameterTypeDescription
Parameter
format
Type
ChatFormatting
Description
No Description Provided

Name: applyTo

Return Type: Style

ZenScript
Copy
Style.applyTo(style as Style) as Style
ParameterTypeDescription
Parameter
style
Type
Style
Description
No Description Provided

Link to g--5

Name: getColor

Return Type: TextColor

ZenScript
Copy
// Style.getColor() as TextColor

myStyle.getColor();

Name: getFont

Return Type: ResourceLocation

ZenScript
Copy
// Style.getFont() as ResourceLocation

myStyle.getFont();

Link to g--7

Name: getInsertion

Return Type: invalid

ZenScript
Copy
// Style.getInsertion() as invalid

myStyle.getInsertion();

Name: isBold

Return Type: boolean

ZenScript
Copy
// Style.isBold() as boolean

myStyle.isBold();

Name: isEmpty

Return Type: boolean

ZenScript
Copy
// Style.isEmpty() as boolean

myStyle.isEmpty();

Name: isItalic

Return Type: boolean

ZenScript
Copy
// Style.isItalic() as boolean

myStyle.isItalic();

Link to g--11

Name: isObfuscated

Return Type: boolean

ZenScript
Copy
// Style.isObfuscated() as boolean

myStyle.isObfuscated();

Link to g--12

Name: isStrikethrough

Return Type: boolean

ZenScript
Copy
// Style.isStrikethrough() as boolean

myStyle.isStrikethrough();

Link to g--13

Name: isUnderlined

Return Type: boolean

ZenScript
Copy
// Style.isUnderlined() as boolean

myStyle.isUnderlined();

Name: withBold

Return Type: Style

ZenScript
Copy
Style.withBold(value as invalid) as Style
ParameterTypeDescription
Parameter
value
Type
invalid
Description
No Description Provided

Link to g--15

Name: withColor

Return Type: Style

ZenScript
Copy
Style.withColor(color as int) as Style
ParameterTypeDescription
Parameter
color
Type
int
Description
No Description Provided

Link to g--16

Name: withColor

Return Type: Style

ZenScript
Copy
Style.withColor(formatting as ChatFormatting) as Style
ParameterTypeDescription
Parameter
formatting
Type
ChatFormatting
Description
No Description Provided

Link to g--17

Name: withColor

Return Type: Style

ZenScript
Copy
Style.withColor(textColor as TextColor) as Style
ParameterTypeDescription
Parameter
textColor
Type
TextColor
Description
No Description Provided

Name: withFont

Return Type: Style

ZenScript
Copy
Style.withFont(fontId as ResourceLocation) as Style
ParameterTypeDescription
Parameter
fontId
Type
ResourceLocation
Description
No Description Provided

Link to g--19

Name: withInsertion

Return Type: Style

ZenScript
Copy
Style.withInsertion(content as invalid) as Style
ParameterTypeDescription
Parameter
content
Type
invalid
Description
No Description Provided

Link to g--20

Name: withItalic

Return Type: Style

ZenScript
Copy
Style.withItalic(value as bool?) as Style
ParameterTypeDescription
Parameter
value
Type
bool?
Description
No Description Provided

Link to g--21

Name: withObfuscated

Return Type: Style

ZenScript
Copy
Style.withObfuscated(value as invalid) as Style
ParameterTypeDescription
Parameter
value
Type
invalid
Description
No Description Provided

Link to g--22

Name: withStrikethrough

Return Type: Style

ZenScript
Copy
Style.withStrikethrough(value as invalid) as Style
ParameterTypeDescription
Parameter
value
Type
invalid
Description
No Description Provided

Link to g--23

Name: withUnderlined

Return Type: Style

ZenScript
Copy
Style.withUnderlined(value as invalid) as Style
ParameterTypeDescription
Parameter
value
Type
invalid
Description
No Description Provided
NameTypeHas GetterHas SetterDescription
Name
bold
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
color
Type
TextColor
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
empty
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
font
Type
ResourceLocation
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
insertion
Type
invalid
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
italic
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
obfucated
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
strikethrough
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
underlined
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided