Style
Link to style
Diese Klasse importieren
Link to diese-klasse-importieren
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 Copyimport crafttweaker.api.text.Style;
Static Methods
Link to static-methods
Methoden
Link to methoden
Name: applyFormat
Return Type: Style
ZenScript CopyStyle.applyFormat(format as ChatFormatting) as Style
Parameter | Type | Beschreibung |
---|---|---|
Parameter format | Type ChatFormatting | Beschreibung No Description Provided |
Name: applyFormats
Return Type: Style
ZenScript CopyStyle.applyFormats(formattings as ChatFormatting[]) as Style
Parameter | Type | Beschreibung |
---|---|---|
Parameter formattings | Type ChatFormatting[] | Beschreibung No Description Provided |
Name: applyLegacyFormat
Return Type: Style
ZenScript CopyStyle.applyLegacyFormat(format as ChatFormatting) as Style
Parameter | Type | Beschreibung |
---|---|---|
Parameter format | Type ChatFormatting | Beschreibung 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 CopyStyle.withBold(value as invalid) as Style
Parameter | Type | Beschreibung |
---|---|---|
Parameter value | Type invalid | Beschreibung No Description Provided |
Name: withColor
Return Type: Style
ZenScript CopyStyle.withColor(color as int) as Style
Parameter | Type | Beschreibung |
---|---|---|
Parameter color | Type int | Beschreibung No Description Provided |
Name: withColor
Return Type: Style
ZenScript CopyStyle.withColor(formatting as ChatFormatting) as Style
Parameter | Type | Beschreibung |
---|---|---|
Parameter formatieren | Type ChatFormatting | Beschreibung No Description Provided |
Name: withFont
Return Type: Style
ZenScript CopyStyle.withFont(fontId as ResourceLocation) as Style
Parameter | Type | Beschreibung |
---|---|---|
Parameter fontId | Type ResourceLocation | Beschreibung No Description Provided |
Name: withInsertion
Return Type: Style
ZenScript CopyStyle.withInsertion(content as invalid) as Style
Parameter | Type | Beschreibung |
---|---|---|
Parameter inhalt | Type invalid | Beschreibung No Description Provided |
Name: withItalic
Return Type: Style
ZenScript CopyStyle.withItalic(value as bool?) as Style
Parameter | Type | Beschreibung |
---|---|---|
Parameter value | Type bool? | Beschreibung No Description Provided |
Name: withObfuscated
Return Type: Style
ZenScript CopyStyle.withObfuscated(value as invalid) as Style
Parameter | Type | Beschreibung |
---|---|---|
Parameter value | Type invalid | Beschreibung No Description Provided |
Name: withStrikethrough
Return Type: Style
ZenScript CopyStyle.withStrikethrough(value as invalid) as Style
Parameter | Type | Beschreibung |
---|---|---|
Parameter value | Type invalid | Beschreibung No Description Provided |
Name: withUnderlined
Return Type: Style
ZenScript CopyStyle.withUnderlined(value as invalid) as Style
Parameter | Type | Beschreibung |
---|---|---|
Parameter value | Type invalid | Beschreibung No Description Provided |
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Beschreibung |
---|---|---|---|---|
Name bold | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name color | Type TextColor | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name empty | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name font | Type ResourceLocation | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name einfügen | Type invalid | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name italic | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name obfucated | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name strikethrough | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name unterstrichen | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |