BlockState

A proxy for a block state from Minecraft
Instances are obtained through the WorldAPI
This proxy also contains a saved position for the BlockState

BlockState.isOpaque

Gets whether or not this BlockState is opaque
overload 1:
BlockState:isOpaque()
Method Property Fluent Description Representation
Return Value a Boolean

BlockState.hasCollision

figura.docs.blockstate.get_has_collision
overload 1:
BlockState:hasCollision()
Method Property Fluent Description Representation
Return Value a Boolean

BlockState.hasEmissiveLighting

figura.docs.blockstate.has_emissive_lightning
overload 1:
BlockState:hasEmissiveLighting()
Method Property Fluent Description Representation
Return Value a Boolean

BlockState.getComparatorOutput

Gets the amount of signal strength a comparator would get from this BlockState
overload 1:
BlockState:getComparatorOutput()
Method Property Fluent Description Representation
Return Value an Integer

BlockState.getVelocityMultiplier

Gets the velocity multiplier of this BlockState
(Only Soul sand,
honey blocks in vanilla)
overload 1:
BlockState:getVelocityMultiplier()
Method Property Fluent Description Representation
Return Value a Number

BlockState.getJumpVelocityMultiplier

Gets the jump velocity multiplier of this BlockState
(Literally just honey blocks in vanilla)
overload 1:
BlockState:getJumpVelocityMultiplier()
Method Property Fluent Description Representation
Return Value a Number

BlockState.getMaterial

figura.docs.blockstate.get_material
overload 1:
BlockState:getMaterial()
Method Property Fluent Description Representation
Return Value a String

BlockState.getHardness

Gets the hardness of the BlockState
overload 1:
BlockState:getHardness()
Method Property Fluent Description Representation
Return Value a Number

BlockState.getLuminance

Gets the emission light level of this BlockState
overload 1:
BlockState:getLuminance()
Method Property Fluent Description Representation
Return Value an Integer

BlockState.getPos

Returns the saved position for this BlockState proxy
The saved position is used in BlockState functions that require a position
overload 1:
BlockState:getPos()
Method Property Fluent Description Representation
Return Value a Vector3

BlockState.setPos

Sets the saved position for this BlockState proxy
The saved position is used in BlockState functions that require a position
overload 1:
BlockState:setPos(pos)
Method Property Fluent Description Representation
pos accepts a Vector3
Return Value nil
overload 2:
BlockState:setPos(x, y, z)
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
z accepts a Number
Return Value nil

BlockState.getBlastResistance

Gets the blast resistance of this BlockState
overload 1:
BlockState:getBlastResistance()
Method Property Fluent Description Representation
Return Value a Number

BlockState.isSolidBlock

Gets whether or not the BlockState is considered a "solid" block by Minecraft
overload 1:
BlockState:isSolidBlock()
Method Property Fluent Description Representation
Return Value a Boolean

BlockState.getOpacity

Gets the opacity of the BlockState, in terms of how much it affects light levels
overload 1:
BlockState:getOpacity()
Method Property Fluent Description Representation
Return Value an Integer

BlockState.isTranslucent

Gets whether or not the BlockState would propagate sky light downwards
overload 1:
BlockState:isTranslucent()
Method Property Fluent Description Representation
Return Value a Boolean

BlockState.getCollisionShape

Returns a table representing the bounding boxes of the collision shape
The table a list of every shape,
containing two Vector3, where the first vector is one corner of the box and the other vector is the other corner
overload 1:
BlockState:getCollisionShape()
Method Property Fluent Description Representation
Return Value a table

BlockState.emitsRedstonePower

Gets whether or not this BlockState emits redstone power
overload 1:
BlockState:emitsRedstonePower()
Method Property Fluent Description Representation
Return Value a Boolean

BlockState.getSounds

Gets the names of all the sounds which can play from this BlockState, as well as their pitch and volume
Stored in a table
overload 1:
BlockState:getSounds()
Method Property Fluent Description Representation
Return Value a table

BlockState.getFriction

Gets the friction of this BlockState
(Slime blocks and ice in vanilla)
overload 1:
BlockState:getFriction()
Method Property Fluent Description Representation
Return Value a Number

BlockState.hasBlockEntity

Gets whether or not this BlockState has an associated block entity
overload 1:
BlockState:hasBlockEntity()
Method Property Fluent Description Representation
Return Value a Boolean

BlockState.asItem

Returns an ItemStack representing this block in item form, whatever Minecraft deems that to be
If it cannot find an item for this block,
it will return nil
overload 1:
BlockState:asItem()
Method Property Fluent Description Representation
Return Value either an ItemStack or nil

BlockState.getTags

Returns a table containing all the tags of this block, as strings
overload 1:
BlockState:getTags()
Method Property Fluent Description Representation
Return Value a table

BlockState.getMapColor

Gets the map color of this BlockState, as a Vector3 with R,G,B ranging 0 to 1
overload 1:
BlockState:getMapColor()
Method Property Fluent Description Representation
Return Value a Vector3

BlockState.getOutlineShape

Returns a table representing the bounding boxes of the outline shape
The table a list of every shape,
containing two Vector3, where the first vector is one corner of the box and the other vector is the other corner
overload 1:
BlockState:getOutlineShape()
Method Property Fluent Description Representation
Return Value a table

BlockState.isFullCube

Gets whether or not the BlockState has a full cube as its collision hitbox
overload 1:
BlockState:isFullCube()
Method Property Fluent Description Representation
Return Value a Boolean

BlockState.getEntityData

Returns the nbt of the Block Entity associated with this BlockState, at its position, as a table
Since the mod is only on client side,
this NBT might not actually contain the real nbt, which is stored server-side
overload 1:
BlockState:getEntityData()
Method Property Fluent Description Representation
Return Value a table

BlockState.toStateString

Converts this BlockState into a string, like you'd see in a Minecraft command
overload 1:
BlockState:toStateString()
Method Property Fluent Description Representation
Return Value a String

BlockState.getFluidTags

Returns a table containing all the fluid tags of this block, as strings
overload 1:
BlockState:getFluidTags()
Method Property Fluent Description Representation
Return Value a table

BlockState.id

The identifier of the block this BlockState comes from
field signature:
id
Method Property Fluent Description Representation
Field Type a String

BlockState.properties

A table containing the properties of this BlockState
If this BlockState has no properties,
it is nil
field signature:
properties
Method Property Fluent Description Representation
Field Type a table
a a