package net.darkhax.teslatest.tileentity;

import net.darkhax.tesla.api.InfiniteTeslaConsumer;
import net.darkhax.tesla.capability.TeslaStorage;
import net.darkhax.tesla.lib.TeslaUtils;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.ITickable;
import net.minecraftforge.common.capabilities.Capability;

/**
 * A TileEntity that produces infinite amounts of tesla power.
 */
public class TileEntityCreativePower extends TileEntity implements ITickable {
    
    @Override
    @SuppressWarnings("unchecked")
    public <T> T getCapability (Capability<T> capability, EnumFacing facing) {
        
        if (capability == TeslaStorage.TESLA_HANDLER_CAPABILITY)
            return (T) new InfiniteTeslaConsumer();
            
        return super.getCapability(capability, facing);
    }
    
    @Override
    public boolean hasCapability (Capability<?> capability, EnumFacing facing) {
        
        if (capability == TeslaStorage.TESLA_HANDLER_CAPABILITY)
            return true;
            
        return super.hasCapability(capability, facing);
    }
    
    @Override
    public void update () {
        
        TeslaUtils.distributePowerEqually(this.worldObj, this.pos, 50, false);
    }
}

@@ -78,22 +78,22 @@
 iteTesla
-Consum
+Produc
 er;%0Aimpo
@@ -758,14 +758,14 @@
 esla
-Consum
+Produc
 er()

Fixed a typo. The CreativePower is a producer, not consumer.