MCTextComponent

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

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.

crafttweaker.api.util.text.MCTextComponent

Methods

hermana anexa

Tipo de retorno: crafttweaker.api.util.text.MCTextComponent

myMCTextComponent.appendSibling(componente como crafttweaker.api.util.text.MCTextComponent);
ParameterTypeDescription
componentecrafttweaker.api.util.text.MCTextComponentNo description provided

appendText

Tipo de retorno: crafttweaker.api.util.text.MCTextComponent

myMCTextComponent.appendText(texto como cadena);
ParameterTypeDescription
textoStringNo description provided

copyRaw

Tipo de retorno: crafttweaker.api.util.text.MCTextComponent

myMCTextComponent.copyRaw();

deepCopy

Tipo de retorno: crafttweaker.api.util.text.MCTextComponent

myMCTextComponent.deepCopy();

getString

Return type: String

myMCTextComponent.getString();

obtener cadena truncada

Return type: String

myMCTextComponent.getStringTruncated(maxLen as int);
ParameterTypeDescription
maxLenintNo description provided

getUnformattedComponentText

Return type: String

myMCTextComponent.getUnformattedComponentText();

setStyle

Tipo de retorno: crafttweaker.api.util.text.MCTextComponent

myMCTextComponent.setStyle(estilo como crafttweaker.api.util.text.MCStyle);
ParameterTypeDescription
estilocrafttweaker.api.util.text.MCStyleNo description provided

Properties

NameTypeHas GetterHas Setter
texto formateadoStringtruefalse
hermanosLista<crafttweaker.api.util.text.MCTextComponent>truefalse
unformattedComponentTextStringtruefalse

Operators

ADD

Componente myMCTextComponent + como crafttweaker.api.util.text.MCTextComponent
ParameterTypeDescription
componentecrafttweaker.api.util.text.MCTextComponentNo description provided
### CAT
Componente myMCTextComponent ~ como crafttweaker.api.util.text.MCTextComponent
ParameterTypeDescription
componentecrafttweaker.api.util.text.MCTextComponentNo description provided
### SHL
myMCTextComponent << componente como crafttweaker.api.util.text.MCTextComponent
ParameterTypeDescription
componentecrafttweaker.api.util.text.MCTextComponentNo description provided

Casters

Result typeIs Implicit
Stringfalse