getPotentialSecondBedBlock

fun BedBlock.getPotentialSecondBedBlock(state: BlockState, pos: BlockPos): BlockPos

Returns the second bed block position that might not exist (normally beds are two blocks long tho).