mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 06:53:24 +00:00
Lots more working stuffs.
This commit is contained in:
1 parent
4e238ee9c4
commit
62d1856a08
4 files changed
+14
-73
No files matched your search
+1
-1
@@ -39,7 +39,7 @@ public class TileCombustionGenerator extends AbstractMachineEntity implements IF
|
||||
|
||||
private boolean inPause = false;
|
||||
|
||||
private int maxOutputTick = 128;
|
||||
private int maxOutputTick = 1280;
|
||||
|
||||
private static int IO_MB_TICK = 250;
|
||||
|
||||
|
||||
@@ -1,54 +1,30 @@
|
||||
package crazypants.enderio.power;
|
||||
|
||||
public class BasicCapacitor implements ICapacitor {
|
||||
|
||||
private int minEnergyReceived = 0;
|
||||
private int maxEnergyReceived = 2;
|
||||
private int maxEnergyStored = 5000;
|
||||
private int minActivationEnergy = 0;
|
||||
|
||||
private int powerLoss = 1;
|
||||
private int powerLossRegularity = 200;
|
||||
|
||||
private int maxEnergyExtracted = 2;
|
||||
|
||||
private int maxEnergyReceived = 40;
|
||||
private int maxEnergyStored = 100000;
|
||||
private int maxEnergyExtracted = 20;
|
||||
|
||||
public BasicCapacitor() {
|
||||
}
|
||||
|
||||
public BasicCapacitor(int maxEnergyIO, int maxEnergyStored) {
|
||||
this(0, maxEnergyIO, maxEnergyStored, 0, 1, 200, maxEnergyIO);
|
||||
this(maxEnergyIO, maxEnergyStored, maxEnergyIO);
|
||||
}
|
||||
|
||||
public BasicCapacitor(int maxEnergyIn, int maxEnergyStored, int maxEnergyOut) {
|
||||
this(0, maxEnergyIn, maxEnergyStored, 0, 1, 200, maxEnergyOut);
|
||||
configure(maxEnergyIn, maxEnergyStored, maxEnergyOut);
|
||||
}
|
||||
|
||||
public BasicCapacitor(int minEnergyReceived, int maxEnergyReceived, int maxEnergyStored, int minActivationEnergy, int powerLoss, int powerLossRegularity,
|
||||
int maxEnergyExtracted) {
|
||||
configure(minEnergyReceived, maxEnergyReceived, maxEnergyStored, minActivationEnergy, powerLoss, powerLossRegularity, maxEnergyExtracted);
|
||||
}
|
||||
|
||||
protected void configure(int minEnergyReceived, int maxEnergyReceived, int maxEnergyStored, int minActivationEnergy, int powerLoss, int powerLossRegularity,
|
||||
int maxEnergyExtracted) {
|
||||
this.minEnergyReceived = minEnergyReceived;
|
||||
|
||||
protected void configure(int maxEnergyReceived, int maxEnergyStored, int maxEnergyExtracted) {
|
||||
this.maxEnergyReceived = maxEnergyReceived;
|
||||
this.maxEnergyStored = maxEnergyStored;
|
||||
this.minActivationEnergy = minActivationEnergy;
|
||||
this.powerLoss = powerLoss;
|
||||
this.powerLossRegularity = powerLossRegularity;
|
||||
this.maxEnergyExtracted = maxEnergyExtracted;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMinEnergyReceived() {
|
||||
return minEnergyReceived;
|
||||
}
|
||||
|
||||
protected void setMinEnergyReceived(int minEnergyReceived) {
|
||||
this.minEnergyReceived = minEnergyReceived;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxEnergyReceived() {
|
||||
return maxEnergyReceived;
|
||||
@@ -66,34 +42,7 @@ public class BasicCapacitor implements ICapacitor {
|
||||
protected void setMaxEnergyStored(int maxEnergyStored) {
|
||||
this.maxEnergyStored = maxEnergyStored;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMinActivationEnergy() {
|
||||
return minActivationEnergy;
|
||||
}
|
||||
|
||||
protected void setMinActivationEnergy(int minActivationEnergy) {
|
||||
this.minActivationEnergy = minActivationEnergy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPowerLoss() {
|
||||
return powerLoss;
|
||||
}
|
||||
|
||||
protected void setPowerLoss(int powerLoss) {
|
||||
this.powerLoss = powerLoss;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPowerLossRegularity() {
|
||||
return powerLossRegularity;
|
||||
}
|
||||
|
||||
protected void setPowerLossRegularity(int powerLossRegularity) {
|
||||
this.powerLossRegularity = powerLossRegularity;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int getMaxEnergyExtracted() {
|
||||
return maxEnergyExtracted;
|
||||
|
||||
@@ -2,18 +2,10 @@ package crazypants.enderio.power;
|
||||
|
||||
public interface ICapacitor {
|
||||
|
||||
int getMinEnergyReceived();
|
||||
|
||||
int getMaxEnergyReceived();
|
||||
|
||||
int getMaxEnergyStored();
|
||||
|
||||
int getMinActivationEnergy();
|
||||
|
||||
int getPowerLoss();
|
||||
|
||||
int getPowerLossRegularity();
|
||||
|
||||
int getMaxEnergyExtracted();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user