shouldRender

fun shouldRender(blockState: BlockState, blockPos: BlockPos): Boolean

Checks if the block should be rendered or not. This can be used to exclude blocks that should not be rendered. Also features an option to only render blocks that are exposed to air.


fun shouldRender(state: BlockState, otherState: BlockState, side: Direction): Boolean