updates to UE 8
minor changes nothing big
This commit is contained in:
parent
ce3d3afcfe
commit
7dddcd1be3
7 changed files with 15 additions and 10 deletions
|
@ -1 +1 @@
|
|||
1.3.2r4
|
||||
r5
|
|
@ -67,7 +67,7 @@ public class TileEntityCondenser extends TileEntity implements ILiquidProducer,
|
|||
|
||||
}
|
||||
@Override
|
||||
public float electricityRequest() {
|
||||
public float ampRequest() {
|
||||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ public class TileEntityPump extends TileEntityElectricUnit implements ILiquidPro
|
|||
if(!worldObj.isRemote)
|
||||
{
|
||||
count++;
|
||||
if (electricityRequest() > 0 && canConnect(side))
|
||||
if (ampRequest() > 0 && canConnect(side))
|
||||
{
|
||||
float rejectedElectricity = (float) Math.max((this.eStored + watts) - this.eMax, 0.0);
|
||||
this.eStored = (float) Math.max(this.eStored + watts - rejectedElectricity, 0.0);
|
||||
|
@ -55,7 +55,7 @@ public class TileEntityPump extends TileEntityElectricUnit implements ILiquidPro
|
|||
}
|
||||
|
||||
@Override
|
||||
public float electricityRequest() {
|
||||
public float ampRequest() {
|
||||
return Math.max(eMax - eStored,0);
|
||||
}
|
||||
@Override
|
||||
|
|
|
@ -77,7 +77,7 @@ public class TileEntityMachine extends TileEntityElectricUnit implements IInven
|
|||
}
|
||||
|
||||
@Override
|
||||
public float electricityRequest() {
|
||||
public float ampRequest() {
|
||||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -4,8 +4,8 @@ import net.minecraftforge.common.ForgeDirection;
|
|||
import universalelectricity.extend.IElectricUnit;
|
||||
|
||||
public class TileEntityNuller extends TileEntityMachine implements IElectricUnit {
|
||||
|
||||
public float electricityRequest()
|
||||
@Override
|
||||
public float ampRequest()
|
||||
{
|
||||
return 100;
|
||||
}
|
||||
|
@ -14,14 +14,17 @@ public class TileEntityNuller extends TileEntityMachine implements IElectricUnit
|
|||
{
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public float getVoltage()
|
||||
{
|
||||
return 1000;
|
||||
}
|
||||
@Override
|
||||
public int getTickInterval()
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
@Override
|
||||
public boolean canConnect(ForgeDirection side)
|
||||
{
|
||||
return true;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"modid": "SteamPower",
|
||||
"name": "Steam Power",
|
||||
"description": "Basic coal fired power plant generator pack for UE",
|
||||
"version": "r4",
|
||||
"version": "r5",
|
||||
"mcversion": "1.3.2",
|
||||
"url": "http://www.minecraftforge.net/forum/index.php/topic,222.0.html",
|
||||
"updateUrl": "",
|
||||
|
|
|
@ -8,7 +8,8 @@ import org.lwjgl.opengl.GL11;
|
|||
|
||||
import steampower.turbine.ContainerGenerator;
|
||||
import steampower.turbine.TileEntitySteamPiston;
|
||||
import universalelectricity.electricity.ElectricUnit;
|
||||
import universalelectricity.electricity.ElectricInfo;
|
||||
import universalelectricity.electricity.ElectricInfo.ElectricUnit;
|
||||
|
||||
public class GUIGenerator extends GuiContainer
|
||||
{
|
||||
|
@ -56,7 +57,8 @@ import universalelectricity.electricity.ElectricUnit;
|
|||
}
|
||||
else
|
||||
{
|
||||
displayText = ElectricUnit.getWattDisplay((int)(tileEntity.generateRate*20));
|
||||
//displayText = ElectricUnit.getWattDisplay((int)(tileEntity.generateRate*20));
|
||||
displayText = ElectricInfo.getDisplay(ElectricInfo.getWatts(tileEntity.generateRate*20, tileEntity.getVoltage()), ElectricUnit.WATT);
|
||||
}
|
||||
displayText2 = "water" + "-" + tileEntity.waterStored;
|
||||
displayText3 = "steam" + "-" + tileEntity.steamStored;
|
||||
|
|
Loading…
Reference in a new issue