recordBlock

open override fun recordBlock(pos: BlockPos, state: BlockState, cleared: Boolean)

Registers a block update and asks the subscriber to make a decision about what should be done. This method must be thread-safe.

Parameters

pos

Might be BlockPos.MutableBlockPos. Use copy if it needs to be saved.

state

The new BlockState of pos.

cleared

If the block is in section already cleared. Or, does it not need to check existing records