mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
33 lines
812 B
Java
33 lines
812 B
Java
package emt.tile.solar.earth;
|
|
|
|
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 TileEntityEarthSolar extends TileEntitySolarBase {
|
|
|
|
public TileEntityEarthSolar() {
|
|
super();
|
|
energySource = new BasicSource(this, 10000, 3);
|
|
output = EMTConfigHandler.compressedSolarOutput;
|
|
}
|
|
|
|
@Override
|
|
public void createEnergy() {
|
|
if (theSunIsVisible && this.yCoord <= 10) {
|
|
energySource.addEnergy(output * 2.5);
|
|
}
|
|
else if (theSunIsVisible) {
|
|
energySource.addEnergy(output);
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
|
return new ItemStack(EMTBlocks.emtSolars2, 1, 2);
|
|
}
|
|
}
|