MCTextkomponente

Link to mctextkomponente

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
Copy
import crafttweaker.api.util.text.MCTextComponent;

Link to g-createstringtextcomponent

Name: createStringTextComponent

Return Type: MCTextComponent

ZenScript
Copy
MCTextComponent.createStringTextComponent(text as string) as MCTextComponent
ParameterTypeBeschreibung
Parameter
text
Type
string
Beschreibung
No Description Provided

Link to g-createtranslationtextcomponent

Name: createTranslationTextComponent

Return Type: MCTextComponent

ZenScript
Copy
MCTextComponent.createTranslationTextComponent(translationKey as string) as MCTextComponent
ParameterTypeBeschreibung
Parameter
translationKey
Type
string
Beschreibung
No Description Provided

Link to g-createtranslationtextcomponent-1

Name: createTranslationTextComponent

Return Type: MCTextComponent

ZenScript
Copy
MCTextComponent.createTranslationTextComponent(translationKey as string, args as Object[]) as MCTextComponent
ParameterTypeBeschreibung
Parameter
translationKey
Type
string
Beschreibung
No Description Provided
Parameter
args
Type
Object[]
Beschreibung
No Description Provided
Result typeIs Implicit
Result type
string
Is Implicit
false

Name: appendSibling

Return Type: MCTextComponent

ZenScript
Copy
MCTextComponent.appendSibling(component as MCTextComponent) as MCTextComponent
ParameterTypeBeschreibung
Parameter
component
Type
MCTextkomponente
Beschreibung
No Description Provided

Name: appendText

Return Type: MCTextComponent

ZenScript
Copy
MCTextComponent.appendText(text as string) as MCTextComponent
ParameterTypeBeschreibung
Parameter
text
Type
string
Beschreibung
No Description Provided

Name: copyRaw

Return Type: MCTextComponent

ZenScript
Copy
// MCTextComponent.copyRaw() as MCTextComponent

myMCTextComponent.copyRaw();

Name: deepCopy

Return Type: MCTextComponent

ZenScript
Copy
// MCTextComponent.deepCopy() as MCTextComponent

myMCTextComponent.deepCopy();

Name: getString

Return Type: string

ZenScript
Copy
// MCTextComponent.getString() as string

myMCTextComponent.getString();

Name: getStringTruncated

Return Type: string

ZenScript
Copy
MCTextComponent.getStringTruncated(maxLen as int) as string
ParameterTypeBeschreibung
Parameter
maxLen
Type
int
Beschreibung
No Description Provided

Name: getStyle

Return Type: MCStyle

ZenScript
Copy
// MCTextComponent.getStyle() as MCStyle

myMCTextComponent.getStyle();

Link to g-getunformattedcomponenttext

Name: getUnformattedComponentText

Return Type: string

ZenScript
Copy
// MCTextComponent.getUnformattedComponentText() as string

myMCTextComponent.getUnformattedComponentText();

Name: setStyle

Return Type: MCTextComponent

ZenScript
Copy
MCTextComponent.setStyle(style as MCStyle) as MCTextComponent
ParameterTypeBeschreibung
Parameter
stile
Type
MCStyle
Beschreibung
No Description Provided

Name: ADD

ZenScript
Copy
myMCTextComponent + component as MCTextComponent

Name: CAT

ZenScript
Copy
myMCTextComponent ~ component as MCTextComponent

Name: SHL

ZenScript
Copy
myMCTextComponent << component as MCTextComponent
NameTypeHas GetterHas SetterBeschreibung
Name
formattedText
Type
string
Has Getter
true
Has Setter
false
Beschreibung
No Description Provided
Name
siblings
Type
stdlib.List<MCTextComponent>
Has Getter
true
Has Setter
false
Beschreibung
No Description Provided
Name
stile
Type
MCStyle
Has Getter
true
Has Setter
false
Beschreibung
No Description Provided
Name
unformattedComponentText
Type
string
Has Getter
true
Has Setter
false
Beschreibung
No Description Provided