Optimized scanner a bit
This commit is contained in:
parent
2d2fecf6a7
commit
0effc7b770
5 changed files with 5 additions and 15 deletions
|
@ -835,14 +835,12 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
|
|||
|
||||
@Override
|
||||
public String[] getInfoData() {
|
||||
String mMufflerInfo="";
|
||||
int mPollutionReduction=0;
|
||||
for (GT_MetaTileEntity_Hatch_Muffler tHatch : mMufflerHatches) {
|
||||
if (isValidMetaTileEntity(tHatch)) {
|
||||
mPollutionReduction+=tHatch.getPollutionReduction();
|
||||
}
|
||||
}
|
||||
mMufflerInfo="Pollution reduced by: "+ EnumChatFormatting.GREEN + mPollutionReduction+ EnumChatFormatting.RESET+" %";
|
||||
|
||||
return new String[]{
|
||||
"Progress:",
|
||||
|
@ -859,7 +857,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
|
|||
EnumChatFormatting.RED+ (getIdealStatus() - getRepairStatus())+EnumChatFormatting.RESET+
|
||||
" Efficiency: "+
|
||||
EnumChatFormatting.YELLOW+Float.toString(mEfficiency / 100.0F)+EnumChatFormatting.RESET + " %",
|
||||
mMufflerInfo
|
||||
"Pollution reduced by: "+ EnumChatFormatting.GREEN + mPollutionReduction+ EnumChatFormatting.RESET+" %"
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -231,14 +231,12 @@ public class GT_MetaTileEntity_DieselEngine extends GT_MetaTileEntity_MultiBlock
|
|||
|
||||
@Override
|
||||
public String[] getInfoData() {
|
||||
String mMufflerInfo="";
|
||||
int mPollutionReduction=0;
|
||||
for (GT_MetaTileEntity_Hatch_Muffler tHatch : mMufflerHatches) {
|
||||
if (isValidMetaTileEntity(tHatch)) {
|
||||
mPollutionReduction+=tHatch.getPollutionReduction();
|
||||
}
|
||||
}
|
||||
mMufflerInfo="Pollution reduced by: "+ EnumChatFormatting.GREEN + mPollutionReduction+ EnumChatFormatting.RESET+" %";
|
||||
|
||||
return new String[]{
|
||||
EnumChatFormatting.BLUE+"Diesel Engine"+EnumChatFormatting.RESET,
|
||||
|
@ -247,7 +245,7 @@ public class GT_MetaTileEntity_DieselEngine extends GT_MetaTileEntity_MultiBlock
|
|||
"Fuel Value: "+EnumChatFormatting.YELLOW+fuelValue+EnumChatFormatting.RESET+" EU/L",
|
||||
"Fuel Remaining: "+EnumChatFormatting.GOLD+fuelRemaining+EnumChatFormatting.RESET+" L",
|
||||
"Current Efficiency: "+EnumChatFormatting.YELLOW+(mEfficiency/100F)+EnumChatFormatting.YELLOW+" %",
|
||||
mMufflerInfo
|
||||
"Pollution reduced by: "+ EnumChatFormatting.GREEN + mPollutionReduction+ EnumChatFormatting.RESET+" %"
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -260,14 +260,12 @@ public class GT_MetaTileEntity_ElectricBlastFurnace
|
|||
|
||||
@Override
|
||||
public String[] getInfoData() {
|
||||
String mMufflerInfo="";
|
||||
int mPollutionReduction=0;
|
||||
for (GT_MetaTileEntity_Hatch_Muffler tHatch : mMufflerHatches) {
|
||||
if (isValidMetaTileEntity(tHatch)) {
|
||||
mPollutionReduction+=tHatch.getPollutionReduction();
|
||||
}
|
||||
}
|
||||
mMufflerInfo="Pollution reduced by: "+ EnumChatFormatting.GREEN + mPollutionReduction+ EnumChatFormatting.RESET+" %";
|
||||
|
||||
return new String[]{
|
||||
"Progress:",
|
||||
|
@ -286,7 +284,7 @@ public class GT_MetaTileEntity_ElectricBlastFurnace
|
|||
EnumChatFormatting.YELLOW+Float.toString(mEfficiency / 100.0F)+EnumChatFormatting.RESET + " %",
|
||||
"Heat capacity: "+
|
||||
EnumChatFormatting.GREEN+mHeatingCapacity+EnumChatFormatting.RESET+" K",
|
||||
mMufflerInfo
|
||||
"Pollution reduced by: "+ EnumChatFormatting.GREEN + mPollutionReduction+ EnumChatFormatting.RESET+" %"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -201,14 +201,12 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends GT_MetaTileEntity_M
|
|||
|
||||
@Override
|
||||
public String[] getInfoData() {
|
||||
String mMufflerInfo="";
|
||||
int mPollutionReduction=0;
|
||||
for (GT_MetaTileEntity_Hatch_Muffler tHatch : mMufflerHatches) {
|
||||
if (isValidMetaTileEntity(tHatch)) {
|
||||
mPollutionReduction+=tHatch.getPollutionReduction();
|
||||
}
|
||||
}
|
||||
mMufflerInfo="Pollution reduced by: "+ EnumChatFormatting.GREEN + mPollutionReduction+ EnumChatFormatting.RESET+" %";
|
||||
|
||||
String tRunning = mMaxProgresstime>0 ?
|
||||
EnumChatFormatting.GREEN+"Turbine running"+EnumChatFormatting.RESET :
|
||||
|
@ -231,7 +229,7 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends GT_MetaTileEntity_M
|
|||
"Current Speed: "+EnumChatFormatting.YELLOW+(mEfficiency/100F)+EnumChatFormatting.RESET+"%",
|
||||
"Turbine Damage: "+EnumChatFormatting.RED+Integer.toString(tDura)+EnumChatFormatting.RESET+"%",
|
||||
tMaintainance,
|
||||
mMufflerInfo
|
||||
"Pollution reduced by: "+ EnumChatFormatting.GREEN + mPollutionReduction+ EnumChatFormatting.RESET+" %"
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -234,14 +234,12 @@ public class GT_MetaTileEntity_MultiFurnace
|
|||
|
||||
@Override
|
||||
public String[] getInfoData() {
|
||||
String mMufflerInfo="";
|
||||
int mPollutionReduction=0;
|
||||
for (GT_MetaTileEntity_Hatch_Muffler tHatch : mMufflerHatches) {
|
||||
if (isValidMetaTileEntity(tHatch)) {
|
||||
mPollutionReduction+=tHatch.getPollutionReduction();
|
||||
}
|
||||
}
|
||||
mMufflerInfo="Pollution reduced by: "+ EnumChatFormatting.GREEN + mPollutionReduction+ EnumChatFormatting.RESET+" %";
|
||||
|
||||
return new String[]{
|
||||
"Progress:",
|
||||
|
@ -260,7 +258,7 @@ public class GT_MetaTileEntity_MultiFurnace
|
|||
EnumChatFormatting.YELLOW+Float.toString(mEfficiency / 100.0F)+EnumChatFormatting.RESET + " %",
|
||||
"Multi smelting: "+
|
||||
EnumChatFormatting.GREEN+mLevel*8+EnumChatFormatting.RESET+" Discount: "+EnumChatFormatting.GREEN+"(EU/t) / "+mCostDiscount+EnumChatFormatting.RESET,
|
||||
mMufflerInfo
|
||||
"Pollution reduced by: "+ EnumChatFormatting.GREEN + mPollutionReduction+ EnumChatFormatting.RESET+" %"
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue