private int emitEnergy()
{
//if (ChargingBench.isDebugging) System.out.println("preEmit-currentEnergy: " + currentEnergy);
if (currentEnergy >= packetSize)
{
EnergyTileSourceEvent sourceEvent = new EnergyTileSourceEvent(this, packetSize);
MinecraftForge.EVENT_BUS.post(sourceEvent);
final int surplus = sourceEvent.amount;
if (surplus < packetSize)
{