mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
+ 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)
40 lines
944 B
Java
40 lines
944 B
Java
package emt.tile.solar.air;
|
|
|
|
import emt.init.EMTBlocks;
|
|
import emt.tile.solar.TileEntitySolarBase;
|
|
import emt.util.EMTConfigHandler;
|
|
import ic2.api.energy.prefab.BasicSource;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public class TileEntityAirSolar extends TileEntitySolarBase {
|
|
|
|
public TileEntityAirSolar() {
|
|
super();
|
|
energySource = new BasicSource(this, 10000, 3);
|
|
output = EMTConfigHandler.compressedSolarOutput;
|
|
this.maxstorage=this.getEUCapacity();
|
|
};
|
|
|
|
@Override
|
|
public float calc_multi() {
|
|
if (this.yCoord<5)
|
|
return 1F;
|
|
else if (this.yCoord>220)
|
|
return 3F;
|
|
else
|
|
return (float) ((41D/43D) + ((2D/215D) * (double) this.yCoord));
|
|
|
|
}
|
|
|
|
@Override
|
|
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
|
return new ItemStack(EMTBlocks.emtSolars, 1, 15);
|
|
}
|
|
|
|
@Override
|
|
public String getInventoryName() {
|
|
return "Compressed Aer Solar";
|
|
}
|
|
}
|