Importare la Classe

Link to importare-la-classe

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();

Name: applyFormat

Return Type: Style

ZenScript
Copy
Style.applyFormat(format as ChatFormatting) as Style
ParametroTipoDescrizione
Parametro
format
Tipo
ChatFormatting
Descrizione
No Description Provided

Name: applyFormats

Return Type: Style

ZenScript
Copy
Style.applyFormats(formattings as ChatFormatting[]) as Style
ParametroTipoDescrizione
Parametro
formattings
Tipo
ChatFormatting[]
Descrizione
No Description Provided

Link to applyLegacyFormat

Name: applyLegacyFormat

Return Type: Style

ZenScript
Copy
Style.applyLegacyFormat(format as ChatFormatting) as Style
ParametroTipoDescrizione
Parametro
format
Tipo
ChatFormatting
Descrizione
No Description Provided

Name: applyTo

Return Type: Style

ZenScript
Copy
Style.applyTo(style as Style) as Style
ParametroTipoDescrizione
Parametro
stile
Tipo
Style
Descrizione
No Description Provided

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();

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();

Name: isObfuscated

Return Type: boolean

ZenScript
Copy
// Style.isObfuscated() as boolean

myStyle.isObfuscated();

Name: isStrikethrough

Return Type: boolean

ZenScript
Copy
// Style.isStrikethrough() as boolean

myStyle.isStrikethrough();

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
ParametroTipoDescrizione
Parametro
valore
Tipo
invalid
Descrizione
No Description Provided

Name: withColor

Return Type: Style

ZenScript
Copy
Style.withColor(color as int) as Style
ParametroTipoDescrizione
Parametro
color
Tipo
int
Descrizione
No Description Provided

Name: withColor

Return Type: Style

ZenScript
Copy
Style.withColor(formatting as ChatFormatting) as Style
ParametroTipoDescrizione
Parametro
formattazione
Tipo
ChatFormatting
Descrizione
No Description Provided

Name: withColor

Return Type: Style

ZenScript
Copy
Style.withColor(textColor as TextColor) as Style
ParametroTipoDescrizione
Parametro
textColor
Tipo
TextColor
Descrizione
No Description Provided

Name: withFont

Return Type: Style

ZenScript
Copy
Style.withFont(fontId as ResourceLocation) as Style
ParametroTipoDescrizione
Parametro
fontId
Tipo
ResourceLocation
Descrizione
No Description Provided

Name: withInsertion

Return Type: Style

ZenScript
Copy
Style.withInsertion(content as invalid) as Style
ParametroTipoDescrizione
Parametro
contenuto
Tipo
invalid
Descrizione
No Description Provided

Name: withItalic

Return Type: Style

ZenScript
Copy
Style.withItalic(value as bool?) as Style
ParametroTipoDescrizione
Parametro
valore
Tipo
bool?
Descrizione
No Description Provided

Name: withObfuscated

Return Type: Style

ZenScript
Copy
Style.withObfuscated(value as invalid) as Style
ParametroTipoDescrizione
Parametro
valore
Tipo
invalid
Descrizione
No Description Provided

Link to withStrikethrough

Name: withStrikethrough

Return Type: Style

ZenScript
Copy
Style.withStrikethrough(value as invalid) as Style
ParametroTipoDescrizione
Parametro
valore
Tipo
invalid
Descrizione
No Description Provided

Name: withUnderlined

Return Type: Style

ZenScript
Copy
Style.withUnderlined(value as invalid) as Style
ParametroTipoDescrizione
Parametro
valore
Tipo
invalid
Descrizione
No Description Provided
NomeTipoHa GetterHa SetterDescrizione
Nome
bold
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
color
Tipo
TextColor
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
empty
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
font
Tipo
ResourceLocation
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
inserimento
Tipo
invalid
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
italic
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
obfucated
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
strikethrough
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
sottolineato
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided