If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.text . MutableComponent;
MutableComponent
implements the following interfaces:
Component
,Message
,FormattedText
// (MutableComponent + (content as Component)) as MutableComponent
myMutableComponent + myComponent
Return Type:
MutableComponent
// (MutableComponent + (content as MutableComponent)) as MutableComponent
myMutableComponent + myMutableComponent
Return Type:
MutableComponent
// (MutableComponent + (content as string)) as MutableComponent
myMutableComponent + myString
Parameters:
content: string
Type: string
Return Type:
MutableComponent
// (MutableComponent ~ (content as Component)) as MutableComponent
myMutableComponent ~ myComponent
Return Type:
MutableComponent
// (MutableComponent ~ (content as MutableComponent)) as MutableComponent
myMutableComponent ~ myMutableComponent
Return Type:
MutableComponent
// (MutableComponent ~ (content as string)) as MutableComponent
myMutableComponent ~ myString
Parameters:
content: string
Type: string
Return Type:
MutableComponent
// (MutableComponent << (content as Component)) as MutableComponent
myMutableComponent << myComponent
Return Type:
MutableComponent
// (MutableComponent << (content as MutableComponent)) as MutableComponent
myMutableComponent << myMutableComponent
Return Type:
MutableComponent
// (MutableComponent << (content as string)) as MutableComponent
myMutableComponent << myString
Parameters:
content: string
Type: string
Return Type:
MutableComponent
// MutableComponent.append(content as string) as MutableComponent;
myMutableComponent . append(myString);
Parameters:
content: string
Type: string
Return Type:
MutableComponent
// MutableComponent.append(component as Component) as MutableComponent;
myMutableComponent . append(myComponent);
Return Type:
MutableComponent
// MutableComponent.append(component as MutableComponent) as MutableComponent;
myMutableComponent . append(myMutableComponent);
Return Type:
MutableComponent
// MutableComponent.contents as ComponentContents
myMutableComponent . contents
Return Type:
ComponentContents
// MutableComponent.contents() as ComponentContents;
myMutableComponent . contents();
Return Type:
ComponentContents
// MutableComponent.copy() as MutableComponent;
myMutableComponent . copy();
Return Type:
MutableComponent
// MutableComponent.empty() as MutableComponent;
MutableComponent . empty();
Return Type:
MutableComponent
// MutableComponent.getString(maxLength as int) as string;
myMutableComponent . getString(myInt);
Return Type:
string
// MutableComponent.getString() as string;
myMutableComponent . getString();
Return Type:
string
// MutableComponent as string
myMutableComponent as string
Return Type:
string
// MutableComponent.keybind(name as string) as MutableComponent;
MutableComponent . keybind(myString);
Parameters:
name: string
Type: string
Return Type:
MutableComponent
// MutableComponent.literal(content as string) as MutableComponent;
MutableComponent . literal(myString);
Parameters:
content: string
Type: string
Return Type:
MutableComponent
// MutableComponent.nullToEmpty(content as string) as Component;
MutableComponent . nullToEmpty(myString);
Parameters:
content: string
Type: string
Return Type:
Component
// MutableComponent.plainCopy() as MutableComponent;
myMutableComponent . plainCopy();
Return Type:
MutableComponent
// MutableComponent.score(name as string, objective as string) as MutableComponent;
MutableComponent . score(myString, myString);
Parameters:
name: string
Type: string
objective: string
Type: string
Return Type:
MutableComponent
// MutableComponent.selector(pattern as string, separator as Component = null) as MutableComponent;
MutableComponent . selector(myString, myComponent);
Parameters:
pattern: string
Type: string
Return Type:
MutableComponent
// MutableComponent.setStyle(style as Style) as MutableComponent;
myMutableComponent . setStyle(myStyle);
Return Type:
MutableComponent
// MutableComponent.siblings as List<Component>
myMutableComponent . siblings
Return Type:
List <Component >
// MutableComponent.siblings() as List<Component>;
myMutableComponent . siblings();
Return Type:
List <Component >
// MutableComponent.style as Style
Return Type:
Style
// MutableComponent.style() as Style;
myMutableComponent . style();
Return Type:
Style
// MutableComponent.translatable(content as string, args as string[]) as MutableComponent;
MutableComponent . translatable(myString, myString[]);
Parameters:
content: string
Type: string
args: string []
Type: string []
Return Type:
MutableComponent
// MutableComponent.translatable(content as string, args as Component[]) as MutableComponent;
MutableComponent . translatable(myString, myComponent[]);
Parameters:
content: string
Type: string
Return Type:
MutableComponent
// MutableComponent.withStyle(styleOperator as function(r as Style) as Style) as MutableComponent;
myMutableComponent . withStyle(myFunction);
Return Type:
MutableComponent
// MutableComponent.withStyle(style as Style) as MutableComponent;
myMutableComponent . withStyle(myStyle);
Return Type:
MutableComponent
// MutableComponent.withStyle(formatting as ChatFormatting[]) as MutableComponent;
myMutableComponent . withStyle(myChatFormatting[]);
Return Type:
MutableComponent