mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
+ Solar rework
+ update to Java 8 + added GUI for Solars (in different colors) + changed Terra/Aer solar beeing dynamic (from y=5 to y=220|x1 to x3) + changed Ordo/Perditio solar generating at night/day (x0.75/x2) + changed Aqua solar generation (x1 at day, x2 under water, x3 while rain x6 while thunderstorm) + changed Ignis solar generation (x1 at day, x2 in Nether, x3 when fed with 10Ignis Centivis) + version number increase (1.2.7.0 -> 1.2.7.1)
This commit is contained in:
1 parent
be6fc768f8
commit
2e2b2ef941
35 files changed
+1224
-142
No files matched your search
@@ -54,21 +54,22 @@ public class TileEntityBaseGenerator
|
||||
|
||||
public TileEntityBaseGenerator(Aspect aspect)
|
||||
{
|
||||
this.energySource.setCapacity(EMTConfigHandler.EssentiaGeneratorStorage);
|
||||
this.maxstorage = ((int)this.energySource.getCapacity());
|
||||
this.maxfuel = 64;
|
||||
this.fuel = 0;
|
||||
this.storage = 0;
|
||||
this.refuel = 1;
|
||||
this.aspect = aspect;
|
||||
this.generating = ((Double)EMTEssentiasOutputs.outputs.get(aspect.getTag())).doubleValue();
|
||||
this.color = -1;
|
||||
super();
|
||||
this.energySource.setCapacity(EMTConfigHandler.EssentiaGeneratorStorage);
|
||||
this.maxstorage = ((int)this.energySource.getCapacity());
|
||||
this.maxfuel = 64;
|
||||
this.fuel = 0;
|
||||
this.storage = 0;
|
||||
this.refuel = 1;
|
||||
this.aspect = aspect;
|
||||
this.generating = ((Double)EMTEssentiasOutputs.outputs.get(aspect.getTag())).doubleValue();
|
||||
this.color = -1;
|
||||
}
|
||||
|
||||
public void updateEntity()
|
||||
{
|
||||
this.dead = false;
|
||||
this.timer = 1L;
|
||||
this.timer =+ 1L;
|
||||
storeFuel();
|
||||
fillfrompipe();
|
||||
createEnergy();
|
||||
@@ -76,20 +77,6 @@ public class TileEntityBaseGenerator
|
||||
this.energySource.updateEntity();
|
||||
}
|
||||
|
||||
public void inputintoGTnet()
|
||||
{
|
||||
for (byte i = 0; i < 6; i = (byte)(i + 1)) {
|
||||
if (getIGregTechTileEntityAtSide(i) != null)
|
||||
{
|
||||
IGregTechTileEntity aBaseMetaTileEntity = getIGregTechTileEntityAtSide(i);
|
||||
if (isUniversalEnergyStored(getOutputVoltage() * getOutputAmperage()))
|
||||
{
|
||||
long tEU = IEnergyConnected.Util.emitEnergyToNetwork(getOutputVoltage(), getOutputAmperage(), this);
|
||||
drainEnergyUnits(i, getOutputVoltage(), tEU);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void storeFuel()
|
||||
{
|
||||
@@ -384,7 +371,21 @@ public class TileEntityBaseGenerator
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void inputintoGTnet()
|
||||
{
|
||||
for (byte i = 0; i < 6; i = (byte)(i + 1)) {
|
||||
if (getIGregTechTileEntityAtSide(i) != null)
|
||||
{
|
||||
IGregTechTileEntity aBaseMetaTileEntity = getIGregTechTileEntityAtSide(i);
|
||||
if (isUniversalEnergyStored(getOutputVoltage() * getOutputAmperage()))
|
||||
{
|
||||
long tEU = IEnergyConnected.Util.emitEnergyToNetwork(getOutputVoltage(), getOutputAmperage(), this);
|
||||
drainEnergyUnits(i, getOutputVoltage(), tEU);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public byte getColorization()
|
||||
{
|
||||
return this.color;
|
||||
|
||||
Reference in new issue
Block a user