update
Updates this inventory for all players currently viewing it. Calling this function will call the onUpdate lifecycle function.
For each player currently viewing this inventory, the onUpdate player lifecycle function will be called.
Updates this inventory for the given player. All previously set items via setItem will be populated in the inventory for the given player. If the player doesn't have this inventory open, this function does nothing.