@SubscribeEvent
fun onBlockPlaced(event: BlockEvent.EntityPlaceEvent) {
val pos = event.pos
val world = event.level
val nbtData = dataExtract.getNBTForPlacedBlock(world, pos)
This is a code snippet that I have, and an issue arises in the parameter of getNBTForPlacedBlock.
The parameter world needs a level object, but val world = event.level is a levelAccessor! object. How do I remedy this?