InvRef

Reference to an inventory.

Caveats

 * A common mistake is to get an ItemStack from an inventory, change it, and expect the changes to carry through to the inventory. ItemStacks returned by and passed to inventory methods are not live objects, but are passed "by copy".  In other words, if you get an ItemStack result and change it, the inventory will not be modified.  You have to call one of the inventory manipulator methods (e.g.  ) for your changes to be reflected back in the inventory.  This is also true of   and , which just get and set the inventory stack the player has selected on the hotbar.