Component
Importing the class
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.
Implements
Component
implements the following interfaces:
Members
Getter
Return Type:
ComponentContents
contents() as ComponentContents
Return Type:
ComponentContents
copy() as MutableComponent
Return Type:
MutableComponent
static empty() as MutableComponent
Return Type:
MutableComponent
getString(maxLength as int) as string
Parameters:
maxLength: int
Type: int
Return Type:
string
getString() as string
Return Type:
string
implicit as string
Return Type:
string
static keybind(name as string) as MutableComponent
Parameters:
name: string
Type: string
Return Type:
MutableComponent
static literal(content as string) as MutableComponent
Parameters:
content: string
Type: string
Return Type:
MutableComponent
static nullToEmpty(content as string) as Component
Parameters:
content: string
Type: string
Return Type:
Component
plainCopy() as MutableComponent
Return Type:
MutableComponent
static score(name as string, objective as string) as MutableComponent
Parameters:
name: string
Type: string
objective: string
Type: string
Return Type:
MutableComponent
static selector(pattern as string, separator as Component = null) as MutableComponent
Parameters:
Return Type:
MutableComponent
static translatable(content as string, args as string[]) as MutableComponent
Parameters:
content: string
Type: string
args: string[]
Type: string[]
Return Type:
MutableComponent
static translatable(content as string, args as Component[]) as MutableComponent
Return Type:
MutableComponent