withFace

fun withFace(face: BlockFace): Block

Narrows this block to reference a certain face. Used by Player.lookingAt to specify the block face being looked at.

Sources

Link copied to clipboard