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

Commit

Permalink
Add info on Bacterial Vat NEI fluid output (#358)
Browse files Browse the repository at this point in the history
* Add info on Bacterial Vat NEI fluid output

* Update en_US.lang

---------

Co-authored-by: Connor-Colenso <[email protected]>
Former-commit-id: 46e168fc16d9c5dafbe78d519b22d8405a33c598
  • Loading branch information
miozune and Connor-Colenso authored Sep 13, 2023
1 parent c748957 commit b20ae38
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Add your dependencies here

dependencies {
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.44.08:dev')
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.44.09:dev')
api("com.github.GTNewHorizons:TecTech:5.3.1:dev")
api("com.github.GTNewHorizons:GalacticGregGT5:1.0.10:dev") {
exclude group:"com.github.GTNewHorizons", module:"bartworks"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.Supplier;
Expand All @@ -30,6 +31,7 @@
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.fluids.FluidStack;
Expand All @@ -41,6 +43,7 @@
import com.github.bartimaeusnek.bartworks.common.loaders.BioItemList;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_BioVat;
import com.gtnewhorizons.modularui.api.drawable.IDrawable;
import com.gtnewhorizons.modularui.api.math.Alignment;
import com.gtnewhorizons.modularui.api.math.Pos2d;
import com.gtnewhorizons.modularui.api.screen.ModularWindow;
import com.gtnewhorizons.modularui.common.widget.DrawableWidget;
Expand All @@ -53,6 +56,7 @@
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Utility;
import gregtech.nei.GT_NEI_DefaultHandler;
import gregtech.nei.NEIRecipeInfo;
import ic2.core.Ic2Items;
import ic2.core.item.ItemFluidCell;
Expand Down Expand Up @@ -802,6 +806,31 @@ public GT_Recipe addRecipe(GT_Recipe aRecipe) {
}
return this.addRecipe(aRecipe, false, false, false);
}

@Override
protected List<String> handleNEIItemOutputTooltip(List<String> currentTip,
GT_NEI_DefaultHandler.FixedPositionedStack pStack) {
if (pStack.isFluid()) {
currentTip.add(EnumChatFormatting.GRAY + StatCollector.translateToLocal("nei.biovat.tooltip"));
return currentTip;
}
return super.handleNEIItemOutputTooltip(currentTip, pStack);
}

@Override
protected void drawNEIOverlayForOutput(GT_NEI_DefaultHandler.FixedPositionedStack stack) {
if (stack.isFluid()) {
drawNEIOverlayText(
"+",
stack,
colorOverride.getTextColorOrDefault("nei_overlay_yellow", 0xFDD835),
0.5f,
true,
Alignment.TopRight);
return;
}
super.drawNEIOverlayForOutput(stack);
}
}

public static class SpecialObjectSensitiveMap extends GT_Recipe.GT_Recipe_Map {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/bartworks/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ tooltip.tile.acidgen.1.name=Creates Power from Chemical Energy Potentials.
nei.biovat.0.name=Needs Glass Tier:
nei.biovat.1.name=Need exactly
nei.biovat.2.name=Need minimum
nei.biovat.tooltip=Outputs up to 1,001x amount, depending on the amount of fluid stored in the Output Hatch

tile.diode.name=Cable Diode
tile.energydistributor.name=Energy Distributor
Expand Down

0 comments on commit b20ae38

Please sign in to comment.