BlockTask

subclasses RenderTask

A task for rendering a Block

BlockTask.block

Sets the Block for this task render
overload 1:
BlockTask:block(block)
Method Property Fluent Description Representation
block accepts a String
Return Value a RenderTask
overload 2:
BlockTask:block(block)
Method Property Fluent Description Representation
block accepts a BlockState
Return Value a RenderTask

BlockTask.setBlock

Sets the Block for this task render
overload 1:
BlockTask:setBlock(block)
Method Property Fluent Description Representation
block accepts a String
Return Value nil
overload 2:
BlockTask:setBlock(block)
Method Property Fluent Description Representation
block accepts a BlockState
Return Value nil

BlockTask.scale

Inherited from RenderTask

Sets the scale of the task, relative to its attached part
overload 1:
BlockTask:scale(scale)
Method Property Fluent Description Representation
scale accepts a Vector3
Return Value a RenderTask
overload 2:
BlockTask:scale(x, y, z)
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
Return Value a RenderTask

BlockTask.enabled

Inherited from RenderTask

figura.docs.render_task.set_enabled
overload 1:
BlockTask:enabled(bool)
Method Property Fluent Description Representation
bool accepts a Boolean
Return Value a RenderTask

BlockTask.pos

Inherited from RenderTask

Sets the position of the task, relative to its attached part
Uses model coordinates
overload 1:
BlockTask:pos(pos)
Method Property Fluent Description Representation
pos accepts a Vector3
Return Value a RenderTask
overload 2:
BlockTask:pos(x, y, z)
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
Return Value a RenderTask

BlockTask.isEnabled

Inherited from RenderTask

figura.docs.render_task.is_enabled
overload 1:
BlockTask:isEnabled()
Method Property Fluent Description Representation
Return Value a Boolean

BlockTask.setScale

Inherited from RenderTask

Sets the scale of the task, relative to its attached part
overload 1:
BlockTask:setScale(scale)
Method Property Fluent Description Representation
scale accepts a Vector3
Return Value nil
overload 2:
BlockTask:setScale(x, y, z)
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
Return Value nil

BlockTask.getRot

Inherited from RenderTask

Gets this task rotation
overload 1:
BlockTask:getRot()
Method Property Fluent Description Representation
Return Value a Vector3

BlockTask.getPos

Inherited from RenderTask

Gets this task position
overload 1:
BlockTask:getPos()
Method Property Fluent Description Representation
Return Value a Vector3

BlockTask.setRot

Inherited from RenderTask

Sets the rotation of the task, relative to its attached part
overload 1:
BlockTask:setRot(rot)
Method Property Fluent Description Representation
rot accepts a Vector3
Return Value nil
overload 2:
BlockTask:setRot(x, y, z)
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
Return Value nil

BlockTask.setPos

Inherited from RenderTask

Sets the position of the task, relative to its attached part
Uses model coordinates
overload 1:
BlockTask:setPos(pos)
Method Property Fluent Description Representation
pos accepts a Vector3
Return Value nil
overload 2:
BlockTask:setPos(x, y, z)
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
Return Value nil

BlockTask.getOverlay

Inherited from RenderTask

Returns the overlay override value of this task
overload 1:
BlockTask:getOverlay()
Method Property Fluent Description Representation
Return Value a Vector2

BlockTask.getLight

Inherited from RenderTask

Returns the light override value of this task
overload 1:
BlockTask:getLight()
Method Property Fluent Description Representation
Return Value a Vector2

BlockTask.setOverlay

Inherited from RenderTask

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:
BlockTask:setOverlay(overlay)
Method Property Fluent Description Representation
overlay accepts a Vector2
Return Value nil
overload 2:
BlockTask:setOverlay(whiteOverlay, hurtOverlay)
Method Property Fluent Description Representation
whiteOverlay accepts an Integer
hurtOverlay accepts an Integer
Return Value nil

BlockTask.setLight

Inherited from RenderTask

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:
BlockTask:setLight(light)
Method Property Fluent Description Representation
light accepts a Vector2
Return Value nil
overload 2:
BlockTask:setLight(blockLight, skyLight)
Method Property Fluent Description Representation
blockLight accepts an Integer
skyLight accepts an Integer
Return Value nil

BlockTask.overlay

Inherited from RenderTask

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:
BlockTask:overlay(overlay)
Method Property Fluent Description Representation
overlay accepts a Vector2
Return Value a RenderTask
overload 2:
BlockTask:overlay(whiteOverlay, hurtOverlay)
Method Property Fluent Description Representation
whiteOverlay accepts an Integer
hurtOverlay accepts an Integer
Return Value a RenderTask

BlockTask.light

Inherited from RenderTask

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:
BlockTask:light(light)
Method Property Fluent Description Representation
light accepts a Vector2
Return Value a RenderTask
overload 2:
BlockTask:light(blockLight, skyLight)
Method Property Fluent Description Representation
blockLight accepts an Integer
skyLight accepts an Integer
Return Value a RenderTask

BlockTask.getScale

Inherited from RenderTask

Gets this task scale
overload 1:
BlockTask:getScale()
Method Property Fluent Description Representation
Return Value a Vector3

BlockTask.setEnabled

Inherited from RenderTask

figura.docs.render_task.set_enabled
overload 1:
BlockTask:setEnabled(bool)
Method Property Fluent Description Representation
bool accepts a Boolean
Return Value nil

BlockTask.rot

Inherited from RenderTask

Sets the rotation of the task, relative to its attached part
overload 1:
BlockTask:rot(rot)
Method Property Fluent Description Representation
rot accepts a Vector3
Return Value a RenderTask
overload 2:
BlockTask:rot(x, y, z)
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
Return Value a RenderTask
a a