This commit is contained in:
parent
d52d256f57
commit
64c0c1ca9d
3 changed files with 15 additions and 3 deletions
|
@ -660,7 +660,8 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B
|
|||
public String[] getInfoData() {
|
||||
return new String[]{
|
||||
mNEIName,
|
||||
"Progress:", (mProgresstime / 20) + " secs",
|
||||
"Progress:",
|
||||
(mProgresstime / 20) + " secs",
|
||||
(mMaxProgresstime / 20) + " secs",
|
||||
"Stored Energy:",
|
||||
getBaseMetaTileEntity().getStoredEU() + "EU",
|
||||
|
|
|
@ -130,7 +130,7 @@ public class GT_MetaTileEntity_ElectricBlastFurnace
|
|||
return false;
|
||||
}
|
||||
|
||||
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
|
||||
private boolean checkMachineFunction(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
|
||||
int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;
|
||||
int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
|
||||
|
||||
|
@ -203,6 +203,12 @@ public class GT_MetaTileEntity_ElectricBlastFurnace
|
|||
this.mHeatingCapacity += 100 * (GT_Utility.getTier(getMaxInputVoltage()) - 2);
|
||||
return true;
|
||||
}
|
||||
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack){
|
||||
boolean result= this.checkMachineFunction(aBaseMetaTileEntity,aStack);
|
||||
if (!result) this.mHeatingCapacity=0;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
public int getMaxEfficiency(ItemStack aStack) {
|
||||
return 10000;
|
||||
|
|
|
@ -95,7 +95,7 @@ public class GT_MetaTileEntity_MultiFurnace
|
|||
return false;
|
||||
}
|
||||
|
||||
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
|
||||
private boolean checkMachineFunction(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
|
||||
int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;
|
||||
int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
|
||||
|
||||
|
@ -162,6 +162,11 @@ public class GT_MetaTileEntity_MultiFurnace
|
|||
}
|
||||
return true;
|
||||
}
|
||||
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack){
|
||||
boolean result= this.checkMachineFunction(aBaseMetaTileEntity,aStack);
|
||||
if (!result) this.mLevel=0;
|
||||
return result;
|
||||
}
|
||||
|
||||
public int getMaxEfficiency(ItemStack aStack) {
|
||||
return 10000;
|
||||
|
|
Loading…
Add table
Reference in a new issue