Translation for solar panels
This commit is contained in:
parent
d76d637781
commit
4e1dfa0018
2 changed files with 14 additions and 13 deletions
|
@ -57,8 +57,8 @@ public class SolarPanelBlockEntity extends PowerAcceptorBlockEntity implements I
|
||||||
public boolean isSunOut() {
|
public boolean isSunOut() {
|
||||||
return canSeeSky && !world.isRaining() && !world.isThundering() && world.isDaylight();
|
return canSeeSky && !world.isRaining() && !world.isThundering() && world.isDaylight();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updatePanel(){
|
private void updatePanel() {
|
||||||
if (world == null) {
|
if (world == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -135,22 +135,21 @@ public class SolarPanelBlockEntity extends PowerAcceptorBlockEntity implements I
|
||||||
// Nope
|
// Nope
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Translate
|
|
||||||
@Override
|
@Override
|
||||||
public void addInfo(List<Text> info, boolean isReal, boolean hasData) {
|
public void addInfo(List<Text> info, boolean isReal, boolean hasData) {
|
||||||
info.add(new LiteralText(Formatting.GRAY + "Internal Energy Storage: " + Formatting.GOLD
|
info.add(new LiteralText(Formatting.GRAY + StringUtils.t("reborncore.tooltip.energy.maxEnergy") + ": "
|
||||||
+ PowerSystem.getLocaliszedPowerFormatted((int) getMaxPower())));
|
+ Formatting.GOLD + PowerSystem.getLocaliszedPowerFormatted(getMaxPower())));
|
||||||
|
|
||||||
info.add(new LiteralText(Formatting.GRAY + "Generation Rate Day: " + Formatting.GOLD
|
info.add(new LiteralText(Formatting.GRAY + StringUtils.t("techreborn.tooltip.generationRate.day") + ": "
|
||||||
+ PowerSystem.getLocaliszedPowerFormatted(panel.generationRateD)));
|
+ Formatting.GOLD + PowerSystem.getLocaliszedPowerFormatted(panel.generationRateD)));
|
||||||
|
|
||||||
info.add(new LiteralText(Formatting.GRAY + "Generation Rate Night: " + Formatting.GOLD
|
info.add(new LiteralText(Formatting.GRAY + StringUtils.t("techreborn.tooltip.generationRate.day") + ": "
|
||||||
+ PowerSystem.getLocaliszedPowerFormatted(panel.generationRateN)));
|
+ Formatting.GOLD + PowerSystem.getLocaliszedPowerFormatted(panel.generationRateN)));
|
||||||
|
|
||||||
info.add(new LiteralText(Formatting.GRAY + "Tier: " + Formatting.GOLD
|
info.add(new LiteralText(Formatting.GRAY + StringUtils.t("reborncore.tooltip.energy.tier") + ": "
|
||||||
+ StringUtils.toFirstCapitalAllLowercase(getTier().toString())));
|
+ Formatting.GOLD + StringUtils.toFirstCapitalAllLowercase(getTier().toString())));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void fromTag(CompoundTag tag) {
|
public void fromTag(CompoundTag tag) {
|
||||||
if (world == null) {
|
if (world == null) {
|
||||||
|
@ -167,7 +166,7 @@ public class SolarPanelBlockEntity extends PowerAcceptorBlockEntity implements I
|
||||||
super.onLoad();
|
super.onLoad();
|
||||||
updatePanel();
|
updatePanel();
|
||||||
}
|
}
|
||||||
|
|
||||||
// IToolDrop
|
// IToolDrop
|
||||||
@Override
|
@Override
|
||||||
public ItemStack getToolDrop(final PlayerEntity playerIn) {
|
public ItemStack getToolDrop(final PlayerEntity playerIn) {
|
||||||
|
|
|
@ -617,6 +617,8 @@
|
||||||
"techreborn.tooltip.inventory": "Inventory",
|
"techreborn.tooltip.inventory": "Inventory",
|
||||||
"techreborn.tooltip.upgrades": "Upgrades",
|
"techreborn.tooltip.upgrades": "Upgrades",
|
||||||
"techreborn.tooltip.alarm": "Shift rightclick to change sound",
|
"techreborn.tooltip.alarm": "Shift rightclick to change sound",
|
||||||
|
"techreborn.tooltip.generationRate.day": "Generation Rate Day",
|
||||||
|
"techreborn.tooltip.generationRate.night": "Generation Rate Night",
|
||||||
|
|
||||||
"_comment23": "ManualUI",
|
"_comment23": "ManualUI",
|
||||||
"techreborn.manual.wiki": "Online wiki",
|
"techreborn.manual.wiki": "Online wiki",
|
||||||
|
|
Loading…
Reference in a new issue