Skip to content

Commit

Permalink
the lang entry was a dud, replaced it with the right one.
Browse files Browse the repository at this point in the history
the new solar doesn't need it because the name matches the lang entry.
  • Loading branch information
omergunr100 committed Feb 13, 2025
1 parent cee74e1 commit de4bd57
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/main/java/com/gregtechceu/gtceu/common/data/GTItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -1989,78 +1989,77 @@ public Component getItemName(ItemStack stack) {
// Solar Panels: ID 331-346
public static ItemEntry<ComponentItem> COVER_SOLAR_PANEL = REGISTRATE.item("solar_panel", ComponentItem::create)
.lang("Solar Panel").onRegister(attach(new TooltipBehavior(lines -> {
lines.addAll(LangHandler.getMultiLang("metaitem.cover.solar.panel.tooltip"));
lines.add(Component.translatable("gtceu.universal.tooltip.voltage_out", 1, GTValues.VNF[GTValues.ULV]));
}))).onRegister(attach(new CoverPlaceBehavior(GTCovers.SOLAR_PANEL_BASIC)))
.register();
public static ItemEntry<ComponentItem> COVER_SOLAR_PANEL_ULV = REGISTRATE
.item("ulv_solar_panel", ComponentItem::create).lang("Ultra Low Voltage Solar Panel")
.onRegister(attach(new TooltipBehavior(lines -> {
lines.addAll(LangHandler.getMultiLang("metaitem.cover.solar.panel.tooltip"));
lines.addAll(LangHandler.getMultiLang("item.gtceu.solar_panel.tooltip"));
lines.add(Component.translatable("gtceu.universal.tooltip.voltage_out", GTValues.V[GTValues.ULV],
GTValues.VNF[GTValues.ULV]));
}))).onRegister(attach(new CoverPlaceBehavior(GTCovers.SOLAR_PANEL[0])))
.register();
public static ItemEntry<ComponentItem> COVER_SOLAR_PANEL_LV = REGISTRATE
.item("lv_solar_panel", ComponentItem::create).lang("Low Voltage Solar Panel")
.onRegister(attach(new TooltipBehavior(lines -> {
lines.addAll(LangHandler.getMultiLang("metaitem.cover.solar.panel.tooltip"));
lines.addAll(LangHandler.getMultiLang("item.gtceu.solar_panel.tooltip"));
lines.add(Component.translatable("gtceu.universal.tooltip.voltage_out", GTValues.V[GTValues.LV],
GTValues.VNF[GTValues.LV]));
}))).onRegister(attach(new CoverPlaceBehavior(GTCovers.SOLAR_PANEL[1])))
.register();
public static ItemEntry<ComponentItem> COVER_SOLAR_PANEL_MV = REGISTRATE
.item("mv_solar_panel", ComponentItem::create).lang("Medium Voltage Solar Panel")
.onRegister(attach(new TooltipBehavior(lines -> {
lines.addAll(LangHandler.getMultiLang("metaitem.cover.solar.panel.tooltip"));
lines.addAll(LangHandler.getMultiLang("item.gtceu.solar_panel.tooltip"));
lines.add(Component.translatable("gtceu.universal.tooltip.voltage_out", GTValues.V[GTValues.MV],
GTValues.VNF[GTValues.MV]));
}))).onRegister(attach(new CoverPlaceBehavior(GTCovers.SOLAR_PANEL[2])))
.register();
public static ItemEntry<ComponentItem> COVER_SOLAR_PANEL_HV = REGISTRATE
.item("hv_solar_panel", ComponentItem::create).lang("High Voltage Solar Panel")
.onRegister(attach(new TooltipBehavior(lines -> {
lines.addAll(LangHandler.getMultiLang("metaitem.cover.solar.panel.tooltip"));
lines.addAll(LangHandler.getMultiLang("item.gtceu.solar_panel.tooltip"));
lines.add(Component.translatable("gtceu.universal.tooltip.voltage_out", GTValues.V[GTValues.HV],
GTValues.VNF[GTValues.HV]));
}))).onRegister(attach(new CoverPlaceBehavior(GTCovers.SOLAR_PANEL[3])))
.register();
public static ItemEntry<ComponentItem> COVER_SOLAR_PANEL_EV = REGISTRATE
.item("ev_solar_panel", ComponentItem::create).lang("Extreme Voltage Solar Panel")
.onRegister(attach(new TooltipBehavior(lines -> {
lines.addAll(LangHandler.getMultiLang("metaitem.cover.solar.panel.tooltip"));
lines.addAll(LangHandler.getMultiLang("item.gtceu.solar_panel.tooltip"));
lines.add(Component.translatable("gtceu.universal.tooltip.voltage_out", GTValues.V[GTValues.EV],
GTValues.VNF[GTValues.EV]));
}))).onRegister(attach(new CoverPlaceBehavior(GTCovers.SOLAR_PANEL[4])))
.register();
public static ItemEntry<ComponentItem> COVER_SOLAR_PANEL_IV = REGISTRATE
.item("iv_solar_panel", ComponentItem::create).lang("Insane Voltage Solar Panel")
.onRegister(attach(new TooltipBehavior(lines -> {
lines.addAll(LangHandler.getMultiLang("metaitem.cover.solar.panel.tooltip"));
lines.addAll(LangHandler.getMultiLang("item.gtceu.solar_panel.tooltip"));
lines.add(Component.translatable("gtceu.universal.tooltip.voltage_out", GTValues.V[GTValues.IV],
GTValues.VNF[GTValues.IV]));
}))).onRegister(attach(new CoverPlaceBehavior(GTCovers.SOLAR_PANEL[5])))
.register();
public static ItemEntry<ComponentItem> COVER_SOLAR_PANEL_LuV = REGISTRATE
.item("luv_solar_panel", ComponentItem::create).lang("Ludicrous Voltage Solar Panel")
.onRegister(attach(new TooltipBehavior(lines -> {
lines.addAll(LangHandler.getMultiLang("metaitem.cover.solar.panel.tooltip"));
lines.addAll(LangHandler.getMultiLang("item.gtceu.solar_panel.tooltip"));
lines.add(Component.translatable("gtceu.universal.tooltip.voltage_out", GTValues.V[GTValues.LuV],
GTValues.VNF[GTValues.LuV]));
}))).onRegister(attach(new CoverPlaceBehavior(GTCovers.SOLAR_PANEL[6])))
.register();
public static ItemEntry<ComponentItem> COVER_SOLAR_PANEL_ZPM = REGISTRATE
.item("zpm_solar_panel", ComponentItem::create).lang("Zero Point Module Solar Panel")
.onRegister(attach(new TooltipBehavior(lines -> {
lines.addAll(LangHandler.getMultiLang("metaitem.cover.solar.panel.tooltip"));
lines.addAll(LangHandler.getMultiLang("item.gtceu.solar_panel.tooltip"));
lines.add(Component.translatable("gtceu.universal.tooltip.voltage_out", GTValues.V[GTValues.ZPM],
GTValues.VNF[GTValues.ZPM]));
}))).onRegister(attach(new CoverPlaceBehavior(GTCovers.SOLAR_PANEL[7])))
.register();
public static ItemEntry<ComponentItem> COVER_SOLAR_PANEL_UV = REGISTRATE
.item("uv_solar_panel", ComponentItem::create).lang("Ultimate Voltage Solar Panel")
.onRegister(attach(new TooltipBehavior(lines -> {
lines.addAll(LangHandler.getMultiLang("metaitem.cover.solar.panel.tooltip"));
lines.addAll(LangHandler.getMultiLang("item.gtceu.solar_panel.tooltip"));
lines.add(Component.translatable("gtceu.universal.tooltip.voltage_out", GTValues.V[GTValues.UV],
GTValues.VNF[GTValues.UV]));
}))).onRegister(attach(new CoverPlaceBehavior(GTCovers.SOLAR_PANEL[8])))
Expand Down

0 comments on commit de4bd57

Please sign in to comment.