Not really.
You could try to emulate what AnvilBlock.use() does.
But you will hit a roadblock trying to implement the ContainerLevelAccess which AnvilMenu/ItemCombinerMenu uses for things like checking the AnvilBlock is still there, breaking the anvil block after crafting, etc.
Download the 1.19.2 version of biomesoplenty the 1.19 won't work with your version of Minecraft.
https://www.curseforge.com/minecraft/mc-mods/biomes-o-plenty/files/all?filter-game-version=1738749986%3a73407