Complete implementation of ElectricBlockWithInventory.