2013-12-27 23:59:59 +01:00
|
|
|
package appeng.tile.networking;
|
|
|
|
|
2014-02-09 02:34:52 +01:00
|
|
|
import net.minecraftforge.common.util.ForgeDirection;
|
2013-12-27 23:59:59 +01:00
|
|
|
import appeng.api.config.AccessRestriction;
|
|
|
|
import appeng.api.config.Actionable;
|
|
|
|
import appeng.api.config.PowerMultiplier;
|
|
|
|
import appeng.api.networking.energy.IAEPowerStorage;
|
|
|
|
import appeng.api.util.AECableType;
|
|
|
|
import appeng.tile.grid.AENetworkTile;
|
|
|
|
|
|
|
|
public class TileCreativeEnergyCell extends AENetworkTile implements IAEPowerStorage
|
|
|
|
{
|
|
|
|
|
|
|
|
public TileCreativeEnergyCell() {
|
|
|
|
gridProxy.setIdlePowerUsage( 0 );
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public AECableType getCableConnectionType(ForgeDirection dir)
|
|
|
|
{
|
|
|
|
return AECableType.COVERED;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double injectAEPower(double amt, Actionable mode)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double extractAEPower(double amt, Actionable mode, PowerMultiplier pm)
|
|
|
|
{
|
|
|
|
return amt;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double getAEMaxPower()
|
|
|
|
{
|
2014-03-06 06:45:14 +01:00
|
|
|
return Long.MAX_VALUE / 10000;
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double getAECurrentPower()
|
|
|
|
{
|
2014-03-06 06:45:14 +01:00
|
|
|
return Long.MAX_VALUE / 10000;
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isAEPublicPowerStorage()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public AccessRestriction getPowerFlow()
|
|
|
|
{
|
|
|
|
return AccessRestriction.READ_WRITE;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|