Fix tooltip
This commit is contained in:
parent
342917851b
commit
ca24d58f86
12 changed files with 31 additions and 29 deletions
|
@ -240,7 +240,7 @@ public class CableBlockEntity extends BlockEntity
|
|||
new TranslatableText("techreborn.tooltip.transferRate")
|
||||
.formatted(Formatting.GRAY)
|
||||
.append(": ")
|
||||
.append(PowerSystem.getLocaliszedPowerFormatted(getCableType().transferRate))
|
||||
.append(PowerSystem.getLocalizedPower(getCableType().transferRate))
|
||||
.formatted(Formatting.GOLD)
|
||||
.append("/t")
|
||||
);
|
||||
|
|
|
@ -226,7 +226,7 @@ public class SolarPanelBlockEntity extends PowerAcceptorBlockEntity implements I
|
|||
.formatted(Formatting.GRAY)
|
||||
.append(": ")
|
||||
.append(
|
||||
new LiteralText(PowerSystem.getLocaliszedPowerFormatted(getMaxStoredPower()))
|
||||
new LiteralText(PowerSystem.getLocalizedPower(getMaxStoredPower()))
|
||||
.formatted(Formatting.GOLD)
|
||||
)
|
||||
);
|
||||
|
@ -236,7 +236,7 @@ public class SolarPanelBlockEntity extends PowerAcceptorBlockEntity implements I
|
|||
.formatted(Formatting.GRAY)
|
||||
.append(": ")
|
||||
.append(
|
||||
new LiteralText(PowerSystem.getLocaliszedPowerFormatted(panel.generationRateD))
|
||||
new LiteralText(PowerSystem.getLocalizedPower(panel.generationRateD))
|
||||
.formatted(Formatting.GOLD)
|
||||
)
|
||||
);
|
||||
|
@ -246,7 +246,7 @@ public class SolarPanelBlockEntity extends PowerAcceptorBlockEntity implements I
|
|||
.formatted(Formatting.GRAY)
|
||||
.append(": ")
|
||||
.append(
|
||||
new LiteralText(PowerSystem.getLocaliszedPowerFormatted(panel.generationRateN))
|
||||
new LiteralText(PowerSystem.getLocalizedPower(panel.generationRateN))
|
||||
.formatted(Formatting.GOLD)
|
||||
)
|
||||
);
|
||||
|
|
|
@ -141,12 +141,12 @@ public class TransformerBlockEntity extends PowerAcceptorBlockEntity implements
|
|||
}
|
||||
|
||||
// IListInfoProvider
|
||||
// TO-DO: translate
|
||||
// TODO: translate
|
||||
@Override
|
||||
public void addInfo(List<Text> info, boolean isReal, boolean hasData) {
|
||||
info.add(new LiteralText(Formatting.GRAY + "Input Rate: " + Formatting.GOLD + PowerSystem.getLocaliszedPowerFormatted((int) getMaxInput(EnergySide.UNKNOWN))));
|
||||
info.add(new LiteralText(Formatting.GRAY + "Input Rate: " + Formatting.GOLD + PowerSystem.getLocalizedPower(getMaxInput(EnergySide.UNKNOWN))));
|
||||
info.add(new LiteralText(Formatting.GRAY + "Input Tier: " + Formatting.GOLD + StringUtils.toFirstCapitalAllLowercase(inputTier.toString())));
|
||||
info.add(new LiteralText(Formatting.GRAY + "Output Rate: " + Formatting.GOLD + PowerSystem.getLocaliszedPowerFormatted((int) getMaxOutput(EnergySide.UNKNOWN))));
|
||||
info.add(new LiteralText(Formatting.GRAY + "Output Rate: " + Formatting.GOLD + PowerSystem.getLocalizedPower(getMaxOutput(EnergySide.UNKNOWN))));
|
||||
info.add(new LiteralText(Formatting.GRAY + "Output Tier: " + Formatting.GOLD + StringUtils.toFirstCapitalAllLowercase(outputTier.toString())));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue