Scanner initial change
This commit is contained in:
parent
13f4435a02
commit
2242c65161
9 changed files with 41 additions and 38 deletions
|
@ -307,8 +307,8 @@ public class GT_MetaTileEntity_BasicBatteryBuffer extends GT_MetaTileEntity_Tier
|
||||||
return new String[]{
|
return new String[]{
|
||||||
EnumChatFormatting.BLUE+getLocalName()+EnumChatFormatting.RESET,
|
EnumChatFormatting.BLUE+getLocalName()+EnumChatFormatting.RESET,
|
||||||
"Stored Items:",
|
"Stored Items:",
|
||||||
EnumChatFormatting.GREEN+GT_Utility.formatNumbers(mStored) +EnumChatFormatting.RESET+ " EU / "+
|
EnumChatFormatting.YELLOW+GT_Utility.formatNumbers(mStored) +EnumChatFormatting.RESET+ " EU /",
|
||||||
EnumChatFormatting.YELLOW+GT_Utility.formatNumbers(mMax) +EnumChatFormatting.RESET+ " EU"
|
EnumChatFormatting.RED+GT_Utility.formatNumbers(mMax) +EnumChatFormatting.RESET+ " EU"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -316,4 +316,4 @@ public class GT_MetaTileEntity_BasicBatteryBuffer extends GT_MetaTileEntity_Tier
|
||||||
public boolean isGivingInformation() {
|
public boolean isGivingInformation() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -690,13 +690,13 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B
|
||||||
return new String[]{
|
return new String[]{
|
||||||
EnumChatFormatting.BLUE + mNEIName + EnumChatFormatting.RESET,
|
EnumChatFormatting.BLUE + mNEIName + EnumChatFormatting.RESET,
|
||||||
"Progress:",
|
"Progress:",
|
||||||
EnumChatFormatting.GREEN + Integer.toString(mProgresstime) + EnumChatFormatting.RESET +" ticks / "+
|
EnumChatFormatting.GREEN + Integer.toString(mProgresstime) + EnumChatFormatting.RESET +" ticks",
|
||||||
EnumChatFormatting.YELLOW + Integer.toString(mMaxProgresstime) + EnumChatFormatting.RESET +" ticks",
|
EnumChatFormatting.YELLOW + Integer.toString(mMaxProgresstime) + EnumChatFormatting.RESET +" ticks",
|
||||||
"Stored Energy:",
|
"Stored Energy:",
|
||||||
EnumChatFormatting.GREEN + Long.toString(getBaseMetaTileEntity().getStoredEU()) + EnumChatFormatting.RESET +" EU / "+
|
EnumChatFormatting.GREEN + Long.toString(getBaseMetaTileEntity().getStoredEU()) + EnumChatFormatting.RESET +" EU",
|
||||||
EnumChatFormatting.YELLOW + Long.toString(getBaseMetaTileEntity().getEUCapacity()) + EnumChatFormatting.RESET +" EU",
|
EnumChatFormatting.YELLOW + Long.toString(getBaseMetaTileEntity().getEUCapacity()) + EnumChatFormatting.RESET +" EU",
|
||||||
"Probably uses:",
|
"Probably uses:",
|
||||||
EnumChatFormatting.RED + Integer.toString(mEUt) + EnumChatFormatting.RESET + " EU/t at "+
|
EnumChatFormatting.RED + Integer.toString(mEUt) + EnumChatFormatting.RESET + " EU/t",
|
||||||
EnumChatFormatting.RED + Integer.toString(mEUt==0?0:mAmperage) + EnumChatFormatting.RESET +" A"
|
EnumChatFormatting.RED + Integer.toString(mEUt==0?0:mAmperage) + EnumChatFormatting.RESET +" A"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -839,4 +839,4 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B
|
||||||
public ITexture[] getSideFacingPipeInactive(byte aColor) {
|
public ITexture[] getSideFacingPipeInactive(byte aColor) {
|
||||||
return new ITexture[]{Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT)};
|
return new ITexture[]{Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE_OUT)};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -840,17 +840,17 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
|
||||||
public String[] getInfoData() {
|
public String[] getInfoData() {
|
||||||
return new String[]{
|
return new String[]{
|
||||||
"Progress:",
|
"Progress:",
|
||||||
EnumChatFormatting.GREEN + Integer.toString(mProgresstime) + EnumChatFormatting.RESET +" ticks / "+
|
EnumChatFormatting.GREEN + Integer.toString(mProgresstime) + EnumChatFormatting.RESET +" ticks",
|
||||||
EnumChatFormatting.YELLOW + Integer.toString(mMaxProgresstime) + EnumChatFormatting.RESET +" ticks",
|
EnumChatFormatting.YELLOW + Integer.toString(mMaxProgresstime) + EnumChatFormatting.RESET +" ticks",
|
||||||
"Stored Energy:",
|
"Stored Energy:",
|
||||||
EnumChatFormatting.GREEN + Long.toString(getBaseMetaTileEntity().getStoredEU()) + EnumChatFormatting.RESET +" EU / "+
|
EnumChatFormatting.GREEN + Long.toString(getBaseMetaTileEntity().getStoredEU()) + EnumChatFormatting.RESET +" EU",
|
||||||
EnumChatFormatting.YELLOW + Long.toString(getBaseMetaTileEntity().getEUCapacity()) + EnumChatFormatting.RESET +" EU",
|
EnumChatFormatting.YELLOW + Long.toString(getBaseMetaTileEntity().getEUCapacity()) + EnumChatFormatting.RESET +" EU",
|
||||||
"Probably uses:",
|
"Probably uses:",
|
||||||
EnumChatFormatting.RED + Integer.toString(mEUt) + EnumChatFormatting.RESET + " EU/t",
|
EnumChatFormatting.RED + Integer.toString(mEUt) + EnumChatFormatting.RESET + " EU/t",
|
||||||
"Maximum total EU/t (to all Energy Hatches, not single ones)",
|
"Maximum total EU/t (to all Energy Hatches, not single ones)",
|
||||||
EnumChatFormatting.YELLOW+Long.toString(getMaxInputVoltage())+EnumChatFormatting.RESET,
|
EnumChatFormatting.RESET+Long.toString(getMaxInputVoltage())+EnumChatFormatting.RESET,
|
||||||
"Efficiency:",
|
"Efficiency:",
|
||||||
EnumChatFormatting.YELLOW+Float.toString(mEfficiency / 100.0F)+EnumChatFormatting.RESET + " %",
|
EnumChatFormatting.YELLOW+Float.toString(mEfficiency / 100.0F)+EnumChatFormatting.RESET + "%",
|
||||||
"Problems:",
|
"Problems:",
|
||||||
""+EnumChatFormatting.RED+ (getIdealStatus() - getRepairStatus())+EnumChatFormatting.RESET};
|
""+EnumChatFormatting.RED+ (getIdealStatus() - getRepairStatus())+EnumChatFormatting.RESET};
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,9 +190,12 @@ public class GT_MetaTileEntity_MicrowaveEnergyTransmitter extends GT_MetaTileEnt
|
||||||
tLoss = GT_Utility.safeInt(10L + (tDistance * Math.max(mMaxLoss - 10L,0) / mMaxLossDistance));
|
tLoss = GT_Utility.safeInt(10L + (tDistance * Math.max(mMaxLoss - 10L,0) / mMaxLossDistance));
|
||||||
}
|
}
|
||||||
if(getBaseMetaTileEntity().isUniversalEnergyStored(V[mTier] + ((V[mTier] * tLoss) / 100))){
|
if(getBaseMetaTileEntity().isUniversalEnergyStored(V[mTier] + ((V[mTier] * tLoss) / 100))){
|
||||||
if (((IEnergyConnected) tTile).injectEnergyUnits((byte) 6, V[mTier], 1) > 0) {
|
//TODO:check tier before sending to disable remote detonation
|
||||||
getBaseMetaTileEntity().decreaseStoredEnergyUnits(V[mTier] + ((V[mTier] * tLoss) / 100), false);
|
//if(((IEnergyConnected) tTile).)
|
||||||
}
|
if (((IEnergyConnected) tTile).injectEnergyUnits((byte) 6, V[mTier], 1) > 0) {
|
||||||
|
getBaseMetaTileEntity().decreaseStoredEnergyUnits(V[mTier] + ((V[mTier] * tLoss) / 100), false);
|
||||||
|
}
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -231,11 +231,11 @@ public class GT_MetaTileEntity_DieselEngine extends GT_MetaTileEntity_MultiBlock
|
||||||
public String[] getInfoData() {
|
public String[] getInfoData() {
|
||||||
return new String[]{
|
return new String[]{
|
||||||
EnumChatFormatting.BLUE+"Diesel Engine"+EnumChatFormatting.RESET,
|
EnumChatFormatting.BLUE+"Diesel Engine"+EnumChatFormatting.RESET,
|
||||||
"Current Output: "+EnumChatFormatting.RED+mEUt+EnumChatFormatting.RESET+" EU/t",
|
"Current Output: "+EnumChatFormatting.RED+mEUt+EnumChatFormatting.RESET+" EU/t",
|
||||||
"Fuel Consumption: "+EnumChatFormatting.YELLOW+fuelConsumption+EnumChatFormatting.RESET+" L/t",
|
"Fuel Consumption: "+EnumChatFormatting.YELLOW+fuelConsumption+EnumChatFormatting.RESET+"L/t",
|
||||||
"Fuel Value: "+EnumChatFormatting.YELLOW+fuelValue+EnumChatFormatting.RESET+" EU/L",
|
"Fuel Value: "+EnumChatFormatting.YELLOW+fuelValue+EnumChatFormatting.RESET+" EU/L",
|
||||||
"Fuel Remaining: "+EnumChatFormatting.GOLD+fuelRemaining+EnumChatFormatting.RESET+" L",
|
"Fuel Remaining: "+EnumChatFormatting.YELLOW+fuelRemaining+EnumChatFormatting.RESET+" Litres",
|
||||||
"Current Efficiency: "+EnumChatFormatting.YELLOW+(mEfficiency/100F)+EnumChatFormatting.YELLOW+" %"};
|
"Current Efficiency: "+EnumChatFormatting.YELLOW+(mEfficiency/100F)+EnumChatFormatting.YELLOW+"%"};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -457,12 +457,12 @@ public abstract class GT_MetaTileEntity_FusionComputer extends GT_MetaTileEntity
|
||||||
return new String[]{
|
return new String[]{
|
||||||
EnumChatFormatting.BLUE+"Fusion Reactor MK "+EnumChatFormatting.RESET+tier,
|
EnumChatFormatting.BLUE+"Fusion Reactor MK "+EnumChatFormatting.RESET+tier,
|
||||||
"EU Required: "+EnumChatFormatting.RED+powerRequired+EnumChatFormatting.RESET+"EU/t",
|
"EU Required: "+EnumChatFormatting.RED+powerRequired+EnumChatFormatting.RESET+"EU/t",
|
||||||
"Stored EU: "+EnumChatFormatting.GREEN+mEUStore+EnumChatFormatting.RESET+" EU / "+EnumChatFormatting.YELLOW+maxEUStore()+EnumChatFormatting.RESET+" EU",
|
"Stored EU: "+EnumChatFormatting.YELLOW+mEUStore+EnumChatFormatting.RESET+" / "+maxEUStore(),
|
||||||
"Plasma Output: "+EnumChatFormatting.YELLOW+plasmaOut+EnumChatFormatting.RESET+"L/t"};
|
"Plasma Output: "+EnumChatFormatting.GREEN+plasmaOut+EnumChatFormatting.RESET+"L/t"};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isGivingInformation() {
|
public boolean isGivingInformation() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -216,8 +216,8 @@ public abstract class GT_MetaTileEntity_LargeTurbine extends GT_MetaTileEntity_M
|
||||||
EnumChatFormatting.BLUE+"Large Turbine"+EnumChatFormatting.RESET,
|
EnumChatFormatting.BLUE+"Large Turbine"+EnumChatFormatting.RESET,
|
||||||
tRunning,
|
tRunning,
|
||||||
"Current Output: "+EnumChatFormatting.RED+mEUt+EnumChatFormatting.RESET+" EU/t",
|
"Current Output: "+EnumChatFormatting.RED+mEUt+EnumChatFormatting.RESET+" EU/t",
|
||||||
"Optimal Flow: "+EnumChatFormatting.YELLOW+(int)realOptFlow+EnumChatFormatting.RESET+" L/t",
|
"Optimal Flow: "+EnumChatFormatting.YELLOW+GT_Utility.safeInt((long)realOptFlow)+EnumChatFormatting.RESET+" L/t",
|
||||||
"Fuel Remaining: "+EnumChatFormatting.GOLD+storedFluid+EnumChatFormatting.RESET+"L",
|
"Fuel Remaining: "+EnumChatFormatting.YELLOW+storedFluid+EnumChatFormatting.RESET+"L",
|
||||||
"Current Speed: "+EnumChatFormatting.YELLOW+(mEfficiency/100F)+EnumChatFormatting.RESET+"%",
|
"Current Speed: "+EnumChatFormatting.YELLOW+(mEfficiency/100F)+EnumChatFormatting.RESET+"%",
|
||||||
"Turbine Damage: "+EnumChatFormatting.RED+Integer.toString(tDura)+EnumChatFormatting.RESET+"%",
|
"Turbine Damage: "+EnumChatFormatting.RED+Integer.toString(tDura)+EnumChatFormatting.RESET+"%",
|
||||||
tMaintainance
|
tMaintainance
|
||||||
|
|
|
@ -184,17 +184,17 @@ public class GT_MetaTileEntity_QuantumChest extends GT_MetaTileEntity_TieredMach
|
||||||
return new String[]{
|
return new String[]{
|
||||||
EnumChatFormatting.BLUE + "Quantum Chest"+ EnumChatFormatting.RESET,
|
EnumChatFormatting.BLUE + "Quantum Chest"+ EnumChatFormatting.RESET,
|
||||||
"Stored Items:",
|
"Stored Items:",
|
||||||
EnumChatFormatting.GOLD+ "No Items"+ EnumChatFormatting.RESET,
|
EnumChatFormatting.YELLOW + "No Items"+ EnumChatFormatting.RESET,
|
||||||
EnumChatFormatting.GREEN + "0" + EnumChatFormatting.RESET+" "+
|
EnumChatFormatting.GREEN + "0" + EnumChatFormatting.RESET,
|
||||||
EnumChatFormatting.YELLOW + Integer.toString(getMaxItemCount())+ EnumChatFormatting.RESET
|
EnumChatFormatting.RED + Integer.toString(getMaxItemCount())+ EnumChatFormatting.RESET
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return new String[]{
|
return new String[]{
|
||||||
EnumChatFormatting.BLUE + "Quantum Chest"+ EnumChatFormatting.RESET,
|
EnumChatFormatting.BLUE + "Quantum Chest"+ EnumChatFormatting.RESET,
|
||||||
"Stored Items:",
|
"Stored Items:",
|
||||||
EnumChatFormatting.GOLD + mItemStack.getDisplayName() + EnumChatFormatting.RESET,
|
EnumChatFormatting.YELLOW + mItemStack.getDisplayName() + EnumChatFormatting.RESET,
|
||||||
EnumChatFormatting.GREEN + Integer.toString(mItemCount) + EnumChatFormatting.RESET+" "+
|
EnumChatFormatting.GREEN + Integer.toString(mItemCount) + EnumChatFormatting.RESET,
|
||||||
EnumChatFormatting.YELLOW + Integer.toString(getMaxItemCount())+ EnumChatFormatting.RESET
|
EnumChatFormatting.RED + Integer.toString(getMaxItemCount())+ EnumChatFormatting.RESET
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -230,4 +230,4 @@ public class GT_MetaTileEntity_QuantumChest extends GT_MetaTileEntity_TieredMach
|
||||||
public ITexture[][][] getTextureSet(ITexture[] aTextures) {
|
public ITexture[][][] getTextureSet(ITexture[] aTextures) {
|
||||||
return new ITexture[0][0][0];
|
return new ITexture[0][0][0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,17 +104,17 @@ public class GT_MetaTileEntity_QuantumTank
|
||||||
return new String[]{
|
return new String[]{
|
||||||
EnumChatFormatting.BLUE + "Quantum Tank"+ EnumChatFormatting.RESET,
|
EnumChatFormatting.BLUE + "Quantum Tank"+ EnumChatFormatting.RESET,
|
||||||
"Stored Fluid:",
|
"Stored Fluid:",
|
||||||
EnumChatFormatting.GOLD + "No Fluid"+ EnumChatFormatting.RESET,
|
EnumChatFormatting.YELLOW + "No Fluid"+ EnumChatFormatting.RESET,
|
||||||
EnumChatFormatting.GREEN + Integer.toString(0) + " L"+ EnumChatFormatting.RESET+" "+
|
EnumChatFormatting.GREEN + Integer.toString(0) + " L"+ EnumChatFormatting.RESET,
|
||||||
EnumChatFormatting.YELLOW + Integer.toString(getCapacity()) + " L"+ EnumChatFormatting.RESET
|
EnumChatFormatting.RED + Integer.toString(getCapacity()) + " L"+ EnumChatFormatting.RESET
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return new String[]{
|
return new String[]{
|
||||||
EnumChatFormatting.BLUE + "Quantum Tank"+ EnumChatFormatting.RESET,
|
EnumChatFormatting.BLUE + "Quantum Tank"+ EnumChatFormatting.RESET,
|
||||||
"Stored Fluid:",
|
"Stored Fluid:",
|
||||||
EnumChatFormatting.GOLD + mFluid.getLocalizedName()+ EnumChatFormatting.RESET,
|
EnumChatFormatting.YELLOW + mFluid.getLocalizedName()+ EnumChatFormatting.RESET,
|
||||||
EnumChatFormatting.GREEN + Integer.toString(mFluid.amount) + " L"+ EnumChatFormatting.RESET+" "+
|
EnumChatFormatting.GREEN + Integer.toString(mFluid.amount) + " L"+ EnumChatFormatting.RESET,
|
||||||
EnumChatFormatting.YELLOW+ Integer.toString(getCapacity()) + " L"+ EnumChatFormatting.RESET
|
EnumChatFormatting.RED + Integer.toString(getCapacity()) + " L"+ EnumChatFormatting.RESET
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,4 +138,4 @@ public class GT_MetaTileEntity_QuantumTank
|
||||||
return 100;
|
return 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue