BlockEvent

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.

script.zs
import crafttweaker.neoforge.api.event.block.BlockEvent;

Extends

BlockEvent extends Event.

Members

Getter
script.zs
// BlockEvent.level as LevelAccessor
myBlockEvent.level

Return Type: LevelAccessor

Getter
script.zs
// BlockEvent.pos as BlockPos
myBlockEvent.pos

Return Type: BlockPos

Getter
script.zs
// BlockEvent.state as BlockState
myBlockEvent.state

Return Type: BlockState