Buy Me a Coffee at ko-fi.com

A task for rendering some Text

Sets this Text alignment
Can be either "LEFT", "RIGHT" or "CENTER"
Default "LEFT"

overload 1:
TextTask.alignment(alignment: String): TextTask
typings.-1808118735typings.-939002766
Method PropertyFluent DescriptionRepresentation
alignment accepts
Return Value

Sets if this text should render its background
Defaults to false

overload 1:
TextTask.background(background: Boolean): TextTask
typings.1729365000typings.-939002766
Method PropertyFluent DescriptionRepresentation
background accepts
Return Value

Sets the background color of this text
If the alpha value is not given, it will use the vanilla value (as in the accessibility settings)

overload 1:
TextTask.backgroundColor(rgba: Vector4): TextTask
typings.2002444081typings.-939002766
Method PropertyFluent DescriptionRepresentation
rgba accepts
Return Value
overload 2:
TextTask.backgroundColor(r: Number, g: Number, b: Number, a: Number): TextTask
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1950496919typings.-939002766
Method PropertyFluent DescriptionRepresentation
r accepts
g accepts
b accepts
a accepts
Return Value

Returns this Text alignment
Default "LEFT"

overload 1:
TextTask.getAlignment(): String
typings.-1808118735
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this text's background color

overload 1:
TextTask.getBackgroundColor(): Vector4
typings.2002444081
Method PropertyFluent DescriptionRepresentation
Return Value

Returns the light override value of this task

overload 1:
TextTask.getLight(): Vector2
typings.2002444079
Method PropertyFluent DescriptionRepresentation
Return Value

Get this task's name

overload 1:
TextTask.getName(): String
typings.-1808118735
Method PropertyFluent DescriptionRepresentation
Return Value

Recalculates the normal matrix for this render task, based on its current position, rotation, scale, and pivot, then returns this matrix

overload 1:
TextTask.getNormalMatrix(): Matrix3
typings.-1789003662
Method PropertyFluent DescriptionRepresentation
Return Value

Returns the normal matrix for this render task
The Raw version of the function is different in that it doesn't recalculate the matrix before returning it

overload 1:
TextTask.getNormalMatrixRaw(): Matrix3
typings.-1789003662
Method PropertyFluent DescriptionRepresentation
Return Value

Gets the opacity of this text

overload 1:
TextTask.getOpacity(): Number
typings.-1950496919
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this tasks text outline color

overload 1:
TextTask.getOutlineColor(): Vector3
typings.2002444080
Method PropertyFluent DescriptionRepresentation
Return Value

Returns the overlay override value of this task

overload 1:
TextTask.getOverlay(): Vector2
typings.2002444079
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this task position

overload 1:
TextTask.getPos(): Vector3
typings.2002444080
Method PropertyFluent DescriptionRepresentation
Return Value

Recalculates the matrix for this render task, based on its current position, rotation, scale, and pivot, then returns this matrix

overload 1:
TextTask.getPositionMatrix(): Matrix4
typings.-1789003661
Method PropertyFluent DescriptionRepresentation
Return Value

Returns the position matrix for this render task
The Raw version of the function is different in that it doesn't recalculate the matrix before getting it

overload 1:
TextTask.getPositionMatrixRaw(): Matrix4
typings.-1789003661
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this task rotation

overload 1:
TextTask.getRot(): Vector3
typings.2002444080
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this task scale

overload 1:
TextTask.getScale(): Vector3
typings.2002444080
Method PropertyFluent DescriptionRepresentation
Return Value

Returns the Text from this task

overload 1:
TextTask.getText(): String
typings.-1808118735
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this text's max width
Defaults to 0

overload 1:
TextTask.getWidth(): Integer
typings.-672261858
Method PropertyFluent DescriptionRepresentation
Return Value

Check if this text should render its background
Defaults to false

overload 1:
TextTask.hasBackground(): Boolean
typings.1729365000
Method PropertyFluent DescriptionRepresentation
Return Value

Checks if this task text has an outline

overload 1:
TextTask.hasOutline(): Boolean
typings.1729365000
Method PropertyFluent DescriptionRepresentation
Return Value

Checks if this task text has shadow

overload 1:
TextTask.hasShadow(): Boolean
typings.1729365000
Method PropertyFluent DescriptionRepresentation
Return Value

Check if this text should wrap lines

overload 1:
TextTask.hasWrap(): Boolean
typings.1729365000
Method PropertyFluent DescriptionRepresentation
Return Value

Check if this text can be seen behind walls
Defaults to false

overload 1:
TextTask.isSeeThrough(): Boolean
typings.1729365000
Method PropertyFluent DescriptionRepresentation
Return Value

Checks if this task is visible

overload 1:
TextTask.isVisible(): Boolean
typings.1729365000
Method PropertyFluent DescriptionRepresentation
Return Value

Sets the light override value of this task
Values are given from 0 to 15, indicating the block light and sky light levels you want to use
Passing nil will reset the lighting override for this task

overload 1:
TextTask.light(light: Vector2): RenderTask
typings.2002444079typings.-1107424165
Method PropertyFluent DescriptionRepresentation
light accepts
Return Value
overload 2:
TextTask.light(blockLight: Integer, skyLight: Integer): RenderTask
typings.-672261858typings.-672261858typings.-1107424165
Method PropertyFluent DescriptionRepresentation
blockLight accepts
skyLight accepts
Return Value

Sets the given matrix as the position matrix for this render task
The normal matrix is automatically calculated as the inverse transpose of this matrix
Calling this DOES NOT CHANGE the values of position, rot, or scale in the render task
If you call setPos() or a similar function, the effects of setMatrix() will be overwritten

overload 1:
TextTask.matrix(matrix: Matrix4): RenderTask
typings.-1789003661typings.-1107424165
Method PropertyFluent DescriptionRepresentation
matrix accepts
Return Value

Sets the opacity of this text

overload 1:
TextTask.opacity(opacity: Number): TextTask
typings.-1950496919typings.-939002766
Method PropertyFluent DescriptionRepresentation
opacity accepts
Return Value

Toggles if the text should render with an outline
The text will always render at full brightness if it is given an outline
Not compatible with "Shadow" and "Emissive" modes

overload 1:
TextTask.outline(outline: Boolean): TextTask
typings.1729365000typings.-939002766
Method PropertyFluent DescriptionRepresentation
outline accepts
Return Value

Sets the outline color this Text should render
Only compatible with "Outline" mode

overload 1:
TextTask.outlineColor(color: Vector3): TextTask
typings.2002444080typings.-939002766
Method PropertyFluent DescriptionRepresentation
color accepts
Return Value
overload 2:
TextTask.outlineColor(r: Number, g: Number, b: Number): TextTask
typings.-1950496919typings.-1950496919typings.-1950496919typings.-939002766
Method PropertyFluent DescriptionRepresentation
r accepts
g accepts
b accepts
Return Value

Sets the overlay override value of this task
Values you give are 0 to 15, indicating the white overlay and the damage overlay levels you want to use
Passing nil will reset the overlay override for this task

overload 1:
TextTask.overlay(overlay: Vector2): RenderTask
typings.2002444079typings.-1107424165
Method PropertyFluent DescriptionRepresentation
overlay accepts
Return Value
overload 2:
TextTask.overlay(whiteOverlay: Integer, hurtOverlay: Integer): RenderTask
typings.-672261858typings.-672261858typings.-1107424165
Method PropertyFluent DescriptionRepresentation
whiteOverlay accepts
hurtOverlay accepts
Return Value

Sets the position of the task, relative to its attached part
Uses model coordinates

overload 1:
TextTask.pos(pos: Vector3): RenderTask
typings.2002444080typings.-1107424165
Method PropertyFluent DescriptionRepresentation
pos accepts
Return Value
overload 2:
TextTask.pos(x: Number, y: Number, z: Number): RenderTask
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1107424165
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Removes this render task from the parent model part

overload 1:
TextTask.remove(): RenderTask
typings.-1107424165
Method PropertyFluent DescriptionRepresentation
Return Value

Sets the rotation of the task, relative to its attached part

overload 1:
TextTask.rot(rot: Vector3): RenderTask
typings.2002444080typings.-1107424165
Method PropertyFluent DescriptionRepresentation
rot accepts
Return Value
overload 2:
TextTask.rot(x: Number, y: Number, z: Number): RenderTask
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1107424165
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Sets the scale of the task, relative to its attached part

overload 1:
TextTask.scale(scale: Vector3): RenderTask
typings.2002444080typings.-1107424165
Method PropertyFluent DescriptionRepresentation
scale accepts
Return Value
overload 2:
TextTask.scale(x: Number, y: Number, z: Number): RenderTask
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1107424165
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Sets if this text can be seen behind walls
Defaults to false

overload 1:
TextTask.seeThrough(seeThrough: Boolean): TextTask
typings.1729365000typings.-939002766
Method PropertyFluent DescriptionRepresentation
seeThrough accepts
Return Value

Sets this Text alignment
Can be either "LEFT", "RIGHT" or "CENTER"
Default "LEFT"

overload 1:
TextTask.setAlignment(alignment: String): TextTask
typings.-1808118735typings.-939002766
Method PropertyFluent DescriptionRepresentation
alignment accepts
Return Value

Sets if this text should render its background
Defaults to false

overload 1:
TextTask.setBackground(background: Boolean): TextTask
typings.1729365000typings.-939002766
Method PropertyFluent DescriptionRepresentation
background accepts
Return Value

Sets the background color of this text
If the alpha value is not given, it will use the vanilla value (as in the accessibility settings)

overload 1:
TextTask.setBackgroundColor(rgba: Vector4): TextTask
typings.2002444081typings.-939002766
Method PropertyFluent DescriptionRepresentation
rgba accepts
Return Value
overload 2:
TextTask.setBackgroundColor(r: Number, g: Number, b: Number, a: Number): TextTask
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1950496919typings.-939002766
Method PropertyFluent DescriptionRepresentation
r accepts
g accepts
b accepts
a accepts
Return Value

Sets the light override value of this task
Values are given from 0 to 15, indicating the block light and sky light levels you want to use
Passing nil will reset the lighting override for this task

overload 1:
TextTask.setLight(light: Vector2): RenderTask
typings.2002444079typings.-1107424165
Method PropertyFluent DescriptionRepresentation
light accepts
Return Value
overload 2:
TextTask.setLight(blockLight: Integer, skyLight: Integer): RenderTask
typings.-672261858typings.-672261858typings.-1107424165
Method PropertyFluent DescriptionRepresentation
blockLight accepts
skyLight accepts
Return Value

Sets the given matrix as the position matrix for this render task
The normal matrix is automatically calculated as the inverse transpose of this matrix
Calling this DOES NOT CHANGE the values of position, rot, or scale in the render task
If you call setPos() or a similar function, the effects of setMatrix() will be overwritten

overload 1:
TextTask.setMatrix(matrix: Matrix4): RenderTask
typings.-1789003661typings.-1107424165
Method PropertyFluent DescriptionRepresentation
matrix accepts
Return Value

Sets the opacity of this text

overload 1:
TextTask.setOpacity(opacity: Number): TextTask
typings.-1950496919typings.-939002766
Method PropertyFluent DescriptionRepresentation
opacity accepts
Return Value

Toggles if the text should render with an outline
The text will always render at full brightness if it is given an outline
Not compatible with "Shadow" and "Emissive" modes

overload 1:
TextTask.setOutline(outline: Boolean): TextTask
typings.1729365000typings.-939002766
Method PropertyFluent DescriptionRepresentation
outline accepts
Return Value

Sets the outline color this Text should render
Only compatible with "Outline" mode

overload 1:
TextTask.setOutlineColor(color: Vector3): TextTask
typings.2002444080typings.-939002766
Method PropertyFluent DescriptionRepresentation
color accepts
Return Value
overload 2:
TextTask.setOutlineColor(r: Number, g: Number, b: Number): TextTask
typings.-1950496919typings.-1950496919typings.-1950496919typings.-939002766
Method PropertyFluent DescriptionRepresentation
r accepts
g accepts
b accepts
Return Value

Sets the overlay override value of this task
Values you give are 0 to 15, indicating the white overlay and the damage overlay levels you want to use
Passing nil will reset the overlay override for this task

overload 1:
TextTask.setOverlay(overlay: Vector2): RenderTask
typings.2002444079typings.-1107424165
Method PropertyFluent DescriptionRepresentation
overlay accepts
Return Value
overload 2:
TextTask.setOverlay(whiteOverlay: Integer, hurtOverlay: Integer): RenderTask
typings.-672261858typings.-672261858typings.-1107424165
Method PropertyFluent DescriptionRepresentation
whiteOverlay accepts
hurtOverlay accepts
Return Value

Sets the position of the task, relative to its attached part
Uses model coordinates

overload 1:
TextTask.setPos(pos: Vector3): RenderTask
typings.2002444080typings.-1107424165
Method PropertyFluent DescriptionRepresentation
pos accepts
Return Value
overload 2:
TextTask.setPos(x: Number, y: Number, z: Number): RenderTask
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1107424165
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Sets the rotation of the task, relative to its attached part

overload 1:
TextTask.setRot(rot: Vector3): RenderTask
typings.2002444080typings.-1107424165
Method PropertyFluent DescriptionRepresentation
rot accepts
Return Value
overload 2:
TextTask.setRot(x: Number, y: Number, z: Number): RenderTask
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1107424165
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Sets the scale of the task, relative to its attached part

overload 1:
TextTask.setScale(scale: Vector3): RenderTask
typings.2002444080typings.-1107424165
Method PropertyFluent DescriptionRepresentation
scale accepts
Return Value
overload 2:
TextTask.setScale(x: Number, y: Number, z: Number): RenderTask
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1107424165
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Sets if this text can be seen behind walls
Defaults to false

overload 1:
TextTask.setSeeThrough(seeThrough: Boolean): TextTask
typings.1729365000typings.-939002766
Method PropertyFluent DescriptionRepresentation
seeThrough accepts
Return Value

Toggles if the Text should render with a drop shadow
Not compatible with "Outline" mode

overload 1:
TextTask.setShadow(shadow: Boolean): TextTask
typings.1729365000typings.-939002766
Method PropertyFluent DescriptionRepresentation
shadow accepts
Return Value

Sets the Text for this task render

overload 1:
TextTask.setText(text: String): TextTask
typings.-1808118735typings.-939002766
Method PropertyFluent DescriptionRepresentation
text accepts
Return Value

Sets whether or not this task should be rendered

overload 1:
TextTask.setVisible(visible: Boolean): RenderTask
typings.1729365000typings.-1107424165
Method PropertyFluent DescriptionRepresentation
visible accepts
Return Value

Sets this text's max width, wrapping the text into multiple lines
A width of 0 or less does not wrap the text
Defaults to 0

overload 1:
TextTask.setWidth(width: Integer): TextTask
typings.-672261858typings.-939002766
Method PropertyFluent DescriptionRepresentation
width accepts
Return Value

Sets if this text should wrap lines

overload 1:
TextTask.setWrap(wrap: Boolean): TextTask
typings.1729365000typings.-939002766
Method PropertyFluent DescriptionRepresentation
wrap accepts
Return Value

Toggles if the Text should render with a drop shadow
Not compatible with "Outline" mode

overload 1:
TextTask.shadow(shadow: Boolean): TextTask
typings.1729365000typings.-939002766
Method PropertyFluent DescriptionRepresentation
shadow accepts
Return Value

Sets the Text for this task render

overload 1:
TextTask.text(text: String): TextTask
typings.-1808118735typings.-939002766
Method PropertyFluent DescriptionRepresentation
text accepts
Return Value

Sets whether or not this task should be rendered

overload 1:
TextTask.visible(visible: Boolean): RenderTask
typings.1729365000typings.-1107424165
Method PropertyFluent DescriptionRepresentation
visible accepts
Return Value

Sets this text's max width, wrapping the text into multiple lines
A width of 0 or less does not wrap the text
Defaults to 0

overload 1:
TextTask.width(width: Integer): TextTask
typings.-672261858typings.-939002766
Method PropertyFluent DescriptionRepresentation
width accepts
Return Value

Sets if this text should wrap lines

overload 1:
TextTask.wrap(wrap: Boolean): TextTask
typings.1729365000typings.-939002766
Method PropertyFluent DescriptionRepresentation
wrap accepts
Return Value