NBTTagList nbtTagList = nbttagcompound.getTagList("Items");
this.inventory = new ItemStack[this.getSizeInventory()];
for (int i = 0; i < nbtTagList.tagCount(); i++)
{
NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbtTagList.tagAt(i);
byte byte0 = nbttagcompound1.getByte("Slot");
if ((byte0 >= 0) && (byte0 < this.inventory.length))
{
this.inventory[byte0] = ItemStack.loadItemStackFromNBT(nbttagcompound1);