Buy Me a Coffee at ko-fi.com

Sets a color multiplier for this sprite
Values are RGBA from 0 to 1
Default values are 1, alpha is optional

overload 1:
SpriteTask.color(rgb: Vector3): SpriteTask
typings.2002444080typings.-769810934
Method PropertyFluent DescriptionRepresentation
rgb accepts
Return Value
overload 2:
SpriteTask.color(rgba: Vector4): SpriteTask
typings.2002444081typings.-769810934
Method PropertyFluent DescriptionRepresentation
rgba accepts
Return Value
overload 3:
SpriteTask.color(r: Number, g: Number, b: Number, a: Number): SpriteTask
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1950496919typings.-769810934
Method PropertyFluent DescriptionRepresentation
r accepts
g accepts
b accepts
a accepts
Return Value

Sets the texture dimensions, used in UV calculation

overload 1:
SpriteTask.dimensions(dimensions: Vector2): SpriteTask
typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
dimensions accepts
Return Value
overload 2:
SpriteTask.dimensions(width: Integer, height: Integer): SpriteTask
typings.-672261858typings.-672261858typings.-769810934
Method PropertyFluent DescriptionRepresentation
width accepts
height accepts
Return Value

Gets the current color multiplier of this sprite
Values are RGBA from 0 to 1

overload 1:
SpriteTask.getColor(): Vector4
typings.2002444081
Method PropertyFluent DescriptionRepresentation
Return Value

Returns the texture dimensions, used in UV calculation

overload 1:
SpriteTask.getDimensions(): Vector2
typings.2002444079
Method PropertyFluent DescriptionRepresentation
Return Value

Returns the light override value of this task

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

Get this task's name

overload 1:
SpriteTask.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:
SpriteTask.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:
SpriteTask.getNormalMatrixRaw(): Matrix3
typings.-1789003662
Method PropertyFluent DescriptionRepresentation
Return Value

Returns the overlay override value of this task

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

Gets this task position

overload 1:
SpriteTask.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:
SpriteTask.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:
SpriteTask.getPositionMatrixRaw(): Matrix4
typings.-1789003661
Method PropertyFluent DescriptionRepresentation
Return Value

Gets the texture UV region

overload 1:
SpriteTask.getRegion(): Vector2
typings.2002444079
Method PropertyFluent DescriptionRepresentation
Return Value

Gets the name of the current render type for this sprite

overload 1:
SpriteTask.getRenderType(): String
typings.-1808118735
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this task rotation

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

Gets this task scale

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

Returns the width and height used to render this sprite

overload 1:
SpriteTask.getSize(): Vector2
typings.2002444079
Method PropertyFluent DescriptionRepresentation
Return Value

Returns this task's current texture

overload 1:
SpriteTask.getTexture(): String
typings.-1808118735
Method PropertyFluent DescriptionRepresentation
Return Value

Gets this texture UV offset

overload 1:
SpriteTask.getUV(): Vector2
typings.2002444079
Method PropertyFluent DescriptionRepresentation
Return Value

Get this texture UV offset, in pixels, based on the texture's dimension

overload 1:
SpriteTask.getUVPixels(): Vector2
typings.2002444079
Method PropertyFluent DescriptionRepresentation
Return Value

Returns a table with all 4 vertices of this sprite
Changing the values through other functions will reset those vertices

overload 1:
SpriteTask.getVertices(): Table
typings.80563118
Method PropertyFluent DescriptionRepresentation
Return Value

Checks if this task is visible

overload 1:
SpriteTask.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:
SpriteTask.light(light: Vector2): RenderTask
typings.2002444079typings.-1107424165
Method PropertyFluent DescriptionRepresentation
light accepts
Return Value
overload 2:
SpriteTask.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:
SpriteTask.matrix(matrix: Matrix4): RenderTask
typings.-1789003661typings.-1107424165
Method PropertyFluent DescriptionRepresentation
matrix 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:
SpriteTask.overlay(overlay: Vector2): RenderTask
typings.2002444079typings.-1107424165
Method PropertyFluent DescriptionRepresentation
overlay accepts
Return Value
overload 2:
SpriteTask.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:
SpriteTask.pos(pos: Vector3): RenderTask
typings.2002444080typings.-1107424165
Method PropertyFluent DescriptionRepresentation
pos accepts
Return Value
overload 2:
SpriteTask.pos(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 texture UV region
Uses its dimensions to calculate the max UV

overload 1:
SpriteTask.region(region: Vector2): SpriteTask
typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
region accepts
Return Value
overload 2:
SpriteTask.region(width: Integer, height: Integer): SpriteTask
typings.-672261858typings.-672261858typings.-769810934
Method PropertyFluent DescriptionRepresentation
width accepts
height accepts
Return Value

Removes this render task from the parent model part

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

Sets the current render type of this sprite
TRANSLUCENT by default
Check the docs enum command for all render types

overload 1:
SpriteTask.renderType(renderType: String): SpriteTask
typings.-1808118735typings.-769810934
Method PropertyFluent DescriptionRepresentation
renderType accepts
Return Value

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

overload 1:
SpriteTask.rot(rot: Vector3): RenderTask
typings.2002444080typings.-1107424165
Method PropertyFluent DescriptionRepresentation
rot accepts
Return Value
overload 2:
SpriteTask.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:
SpriteTask.scale(scale: Vector3): RenderTask
typings.2002444080typings.-1107424165
Method PropertyFluent DescriptionRepresentation
scale accepts
Return Value
overload 2:
SpriteTask.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 a color multiplier for this sprite
Values are RGBA from 0 to 1
Default values are 1, alpha is optional

overload 1:
SpriteTask.setColor(rgb: Vector3): SpriteTask
typings.2002444080typings.-769810934
Method PropertyFluent DescriptionRepresentation
rgb accepts
Return Value
overload 2:
SpriteTask.setColor(rgba: Vector4): SpriteTask
typings.2002444081typings.-769810934
Method PropertyFluent DescriptionRepresentation
rgba accepts
Return Value
overload 3:
SpriteTask.setColor(r: Number, g: Number, b: Number, a: Number): SpriteTask
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1950496919typings.-769810934
Method PropertyFluent DescriptionRepresentation
r accepts
g accepts
b accepts
a accepts
Return Value

Sets the texture dimensions, used in UV calculation

overload 1:
SpriteTask.setDimensions(dimensions: Vector2): SpriteTask
typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
dimensions accepts
Return Value
overload 2:
SpriteTask.setDimensions(width: Integer, height: Integer): SpriteTask
typings.-672261858typings.-672261858typings.-769810934
Method PropertyFluent DescriptionRepresentation
width accepts
height 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:
SpriteTask.setLight(light: Vector2): RenderTask
typings.2002444079typings.-1107424165
Method PropertyFluent DescriptionRepresentation
light accepts
Return Value
overload 2:
SpriteTask.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:
SpriteTask.setMatrix(matrix: Matrix4): RenderTask
typings.-1789003661typings.-1107424165
Method PropertyFluent DescriptionRepresentation
matrix 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:
SpriteTask.setOverlay(overlay: Vector2): RenderTask
typings.2002444079typings.-1107424165
Method PropertyFluent DescriptionRepresentation
overlay accepts
Return Value
overload 2:
SpriteTask.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:
SpriteTask.setPos(pos: Vector3): RenderTask
typings.2002444080typings.-1107424165
Method PropertyFluent DescriptionRepresentation
pos accepts
Return Value
overload 2:
SpriteTask.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 texture UV region
Uses its dimensions to calculate the max UV

overload 1:
SpriteTask.setRegion(region: Vector2): SpriteTask
typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
region accepts
Return Value
overload 2:
SpriteTask.setRegion(width: Integer, height: Integer): SpriteTask
typings.-672261858typings.-672261858typings.-769810934
Method PropertyFluent DescriptionRepresentation
width accepts
height accepts
Return Value

Sets the current render type of this sprite
TRANSLUCENT by default
Check the docs enum command for all render types

overload 1:
SpriteTask.setRenderType(renderType: String): SpriteTask
typings.-1808118735typings.-769810934
Method PropertyFluent DescriptionRepresentation
renderType accepts
Return Value

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

overload 1:
SpriteTask.setRot(rot: Vector3): RenderTask
typings.2002444080typings.-1107424165
Method PropertyFluent DescriptionRepresentation
rot accepts
Return Value
overload 2:
SpriteTask.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:
SpriteTask.setScale(scale: Vector3): RenderTask
typings.2002444080typings.-1107424165
Method PropertyFluent DescriptionRepresentation
scale accepts
Return Value
overload 2:
SpriteTask.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 the width and height used to render this sprite

overload 1:
SpriteTask.setSize(size: Vector2): SpriteTask
typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
size accepts
Return Value
overload 2:
SpriteTask.setSize(width: Integer, height: Integer): SpriteTask
typings.-672261858typings.-672261858typings.-769810934
Method PropertyFluent DescriptionRepresentation
width accepts
height accepts
Return Value

Sets this task's texture
The texture's width and height must be provided if the texture is a location
For custom textures, the dimensions are optional

overload 1:
SpriteTask.setTexture(textureLocation: String, width: Integer, height: Integer): SpriteTask
typings.-1808118735typings.-672261858typings.-672261858typings.-769810934
Method PropertyFluent DescriptionRepresentation
textureLocation accepts
width accepts
height accepts
Return Value
overload 2:
SpriteTask.setTexture(texture: Texture): SpriteTask
typings.246836475typings.-769810934
Method PropertyFluent DescriptionRepresentation
texture accepts
Return Value
overload 3:
SpriteTask.setTexture(texture: Texture, width: Integer, height: Integer): SpriteTask
typings.246836475typings.-672261858typings.-672261858typings.-769810934
Method PropertyFluent DescriptionRepresentation
texture accepts
width accepts
height accepts
Return Value
overload 4:
SpriteTask.setTexture(textureLocation: String, dimensions: Vector2): SpriteTask
typings.-1808118735typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
textureLocation accepts
dimensions accepts
Return Value
overload 5:
SpriteTask.setTexture(texture: Texture, dimensions: Vector2): SpriteTask
typings.246836475typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
texture accepts
dimensions accepts
Return Value

Sets this texture UV offset
The Region and Dimension are used to calculate the end UV

overload 1:
SpriteTask.setUV(uv: Vector2): SpriteTask
typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
uv accepts
Return Value
overload 2:
SpriteTask.setUV(u: Number, v: Number): SpriteTask
typings.-1950496919typings.-1950496919typings.-769810934
Method PropertyFluent DescriptionRepresentation
u accepts
v accepts
Return Value

Set this texture UV offset, in pixels, based on the texture's dimension

overload 1:
SpriteTask.setUVPixels(uv: Vector2): SpriteTask
typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
uv accepts
Return Value
overload 2:
SpriteTask.setUVPixels(u: Number, v: Number): SpriteTask
typings.-1950496919typings.-1950496919typings.-769810934
Method PropertyFluent DescriptionRepresentation
u accepts
v accepts
Return Value

Sets whether or not this task should be rendered

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

Sets the width and height used to render this sprite

overload 1:
SpriteTask.size(size: Vector2): SpriteTask
typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
size accepts
Return Value
overload 2:
SpriteTask.size(width: Integer, height: Integer): SpriteTask
typings.-672261858typings.-672261858typings.-769810934
Method PropertyFluent DescriptionRepresentation
width accepts
height accepts
Return Value

Sets this task's texture
The texture's width and height must be provided if the texture is a location
For custom textures, the dimensions are optional

overload 1:
SpriteTask.texture(textureLocation: String, width: Integer, height: Integer): SpriteTask
typings.-1808118735typings.-672261858typings.-672261858typings.-769810934
Method PropertyFluent DescriptionRepresentation
textureLocation accepts
width accepts
height accepts
Return Value
overload 2:
SpriteTask.texture(texture: Texture): SpriteTask
typings.246836475typings.-769810934
Method PropertyFluent DescriptionRepresentation
texture accepts
Return Value
overload 3:
SpriteTask.texture(texture: Texture, width: Integer, height: Integer): SpriteTask
typings.246836475typings.-672261858typings.-672261858typings.-769810934
Method PropertyFluent DescriptionRepresentation
texture accepts
width accepts
height accepts
Return Value
overload 4:
SpriteTask.texture(textureLocation: String, dimensions: Vector2): SpriteTask
typings.-1808118735typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
textureLocation accepts
dimensions accepts
Return Value
overload 5:
SpriteTask.texture(texture: Texture, dimensions: Vector2): SpriteTask
typings.246836475typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
texture accepts
dimensions accepts
Return Value

Sets this texture UV offset
The Region and Dimension are used to calculate the end UV

overload 1:
SpriteTask.uv(uv: Vector2): SpriteTask
typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
uv accepts
Return Value
overload 2:
SpriteTask.uv(u: Number, v: Number): SpriteTask
typings.-1950496919typings.-1950496919typings.-769810934
Method PropertyFluent DescriptionRepresentation
u accepts
v accepts
Return Value

Set this texture UV offset, in pixels, based on the texture's dimension

overload 1:
SpriteTask.uvPixels(uv: Vector2): SpriteTask
typings.2002444079typings.-769810934
Method PropertyFluent DescriptionRepresentation
uv accepts
Return Value
overload 2:
SpriteTask.uvPixels(u: Number, v: Number): SpriteTask
typings.-1950496919typings.-1950496919typings.-769810934
Method PropertyFluent DescriptionRepresentation
u accepts
v accepts
Return Value

Sets whether or not this task should be rendered

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