Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
Fix Boldarnator tooltip.
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor-Colenso authored and AbdielKavash committed Apr 10, 2024
1 parent d961bf1 commit f6fc0e8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dependencies {
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.140:dev')
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.144:dev')
api("com.github.GTNewHorizons:bartworks:0.9.17:dev")

implementation('curse.maven:cofh-core-69162:2388751')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

import java.util.ArrayList;

import gregtech.api.util.GT_LanguageManager;
import gtPlusPlus.xmod.gregtech.api.enums.GregtechItemList;
import gtPlusPlus.xmod.gregtech.common.blocks.GregtechMetaCasingItems;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidRegistry;
Expand Down Expand Up @@ -74,19 +77,23 @@ public String getMachineType() {
return "Rock Breaker";
}

private static final String casingBaseName = GT_LanguageManager.getTranslation("gtplusplus.blockcasings.2.0.name");
private static final String casingMiddleName = GT_LanguageManager.getTranslation("gtplusplus.blockcasings.2.11.name");
private static final String anyBaseCasing = "Any " + casingBaseName;

@Override
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
tt.addMachineType(getMachineType()).addInfo("Controller Block for the Industrial Rock Breaker")
.addInfo("Speed: +200% | EU Usage: 75% | Parallel: Tier x 8").addInfo("Circuit goes in the GUI slot")
.addInfo("1 = cobble, 2 = stone, 3 = obsidian").addInfo("Supply Water/Lava")
.addPollutionAmount(getPollutionPerSecond(null)).addSeparator().beginStructureBlock(3, 4, 3, true)
.addController("Bottom Center").addCasingInfoMin("Thermal Processing Casing", 9, false)
.addCasingInfoMin("Thermal Containment Casing", 9, false)
.addInputBus("Any Thermal Containment Casing", 1).addInputHatch("Any Thermal Containment Casing", 1)
.addOutputBus("Any Thermal Containment Casing", 1).addEnergyHatch("Any Thermal Containment Casing", 1)
.addMaintenanceHatch("Any Thermal Containment Casing", 1)
.addMufflerHatch("Any Thermal Containment Casing", 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
.addController("Bottom Center").addCasingInfoMin(casingBaseName, 9, false)
.addCasingInfoExactly(casingMiddleName, 16, false)
.addInputBus(anyBaseCasing, 1).addInputHatch(anyBaseCasing, 1)
.addOutputBus(anyBaseCasing, 1).addEnergyHatch(anyBaseCasing, 1)
.addMaintenanceHatch(anyBaseCasing, 1)
.addMufflerHatch(anyBaseCasing, 1).toolTipFinisher(CORE.GT_Tooltip_Builder.get());
return tt;
}

Expand Down

0 comments on commit f6fc0e8

Please sign in to comment.