oldCursor

val oldCursor: ItemStack?

The item that was on the cursor before the interaction occurred. This can be null if the cursor was empty. This property provides information about what item the player was holding with their cursor before the interaction, which can be used to determine how to handle the interaction and update the virtual inventory accordingly.