modifyDrawSide

fun modifyDrawSide(blockState: BlockState, level: BlockGetter, blockPos: BlockPos, side: Direction, original: Boolean): Boolean

Keeps vanilla/Sodium face culling unless this is a whitelisted XRay block hidden behind another block.

See also

ModelBlockRenderer.shouldRenderFace
AbstractBlockRenderContext.shouldDrawSide