{
ItemStack currentStack = contents[slot];
if (currentStack != null && currentStack.getItem() instanceof IElectricItem)
{
// Test if the item is fully charged (cannot accept any more power).
if (ElectricItem.charge(currentStack.copy(), 1, baseTier, false, true) == 0)
{
contents[Info.CB_SLOT_OUTPUT] = currentStack;
contents[slot] = null;
this.onInventoryChanged();
break;