Added NC display support for large turbines
This commit is contained in:
parent
68601d5df9
commit
7ac0849c1a
1 changed files with 25 additions and 0 deletions
|
@ -190,4 +190,29 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends GT_MetaTileEntity_M
|
||||||
public boolean explodesOnComponentBreak(ItemStack aStack) {
|
public boolean explodesOnComponentBreak(ItemStack aStack) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String[] getInfoData() {
|
||||||
|
String tRunning = mMaxProgresstime>0 ? "Turbine running":"Turbine stopped";
|
||||||
|
String tMaintainance = getIdealStatus() == getRepairStatus() ? "No Maintainance issues" : "Needs Maintainance" ;
|
||||||
|
int tDura = 0;
|
||||||
|
|
||||||
|
if (mInventory[1] != null && mInventory[1].getItem() instanceof GT_MetaGenerated_Tool_01) {
|
||||||
|
tDura = (int) ((100.0f / GT_MetaGenerated_Tool.getToolMaxDamage(mInventory[1]) * (GT_MetaGenerated_Tool.getToolDamage(mInventory[1]))+1));
|
||||||
|
}
|
||||||
|
|
||||||
|
return new String[]{
|
||||||
|
"Large Turbine",
|
||||||
|
tRunning,
|
||||||
|
"Current output: "+mEUt+" EU/t",
|
||||||
|
"Current speed: "+(mEfficiency/100)+"%",
|
||||||
|
tMaintainance,
|
||||||
|
"Turbine Damage: "+tDura+"%"};
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isGivingInformation() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue