Simple Cleanup

This commit is contained in:
mezz committed 2014-12-20 03:59:31 -08:00
1 parent 09df969bcf
commit e2fff11ea8
141 files changed
+545 -859

No files matched your search

@@ -14,12 +14,12 @@ public class EnergyManager implements IEnergyHandler {
}
private final int energyPerWork;
protected EnergyStorage energyStorage;
private final EnergyStorage energyStorage;
private EnergyTransferMode mode = EnergyTransferMode.BOTH;
public EnergyManager(int maxTransfer, int energyPerWork, int capacity) {
this.energyPerWork = scaleForDifficulty(energyPerWork);
energyStorage = new EnergyStorage(scaleForDifficulty(capacity), scaleForDifficulty(maxTransfer), scaleForDifficulty(maxTransfer));
this.energyStorage = new EnergyStorage(scaleForDifficulty(capacity), scaleForDifficulty(maxTransfer), scaleForDifficulty(maxTransfer));
}
private static int scaleForDifficulty(int energyPerUse) {
@@ -143,8 +143,6 @@ public class EnergyManager implements IEnergyHandler {
/**
* Sends as much energy as it can to the tile at orientation.
* For power sources. Ignores canExtract()
* @param orientation
* @param tile
* @return amount sent
*/
public int sendEnergy(ForgeDirection orientation, TileEntity tile) {
@@ -154,9 +152,6 @@ public class EnergyManager implements IEnergyHandler {
/**
* Sends amount of energy to the tile at orientation.
* For power sources. Ignores canExtract()
* @param orientation
* @param tile
* @param amount
* @return amount sent
*/
public int sendEnergy(ForgeDirection orientation, TileEntity tile, int amount) {
@@ -175,7 +170,6 @@ public class EnergyManager implements IEnergyHandler {
/**
* Drains an amount of energy, due to decay from lack of work or other factors
* @param amount
*/
public void drainEnergy(int amount) {
energyStorage.modifyEnergyStored(-amount);
@@ -183,7 +177,6 @@ public class EnergyManager implements IEnergyHandler {
/**
* Creates an amount of energy, generated by engines
* @param amount
*/
public void generateEnergy(int amount) {
energyStorage.modifyEnergyStored(amount);