set Contents
Completely replaces the inventory's contents. Removes all existing contents and replaces it with the ItemStacks given in the array.
Parameters
items
A complete replacement for the contents; the length must be less than or equal to getSize.
Throws
If the array has more items than the inventory.