viewed = inventory;
viewingBlocks.add(block);
MAX_ITEM_VALUE = inventory.size() * 64.0;
InventoryIterator iter = inventory.iterator();
while (iter.hasNext()) {
ItemStack next = iter.next();
if (next != null && !next.isEmpty()) {
currentValue += getItemStackValue(next);
}
}
updateRedstoneValue();