Allows you to determine why an inventory was closed, enabling plugin developers to "confirm" things based on if it was player triggered close or not.