diff options
author | miozune <miozune@gmail.com> | 2023-09-14 23:40:38 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 16:40:38 +0200 |
commit | 375c022cab46d8c6c06c12e1e49a783ecf587479 (patch) | |
tree | 3d9902367b413f863f71ba0d6b8a5357b51d8498 /src/main/java/com | |
parent | c530b6cdcb45f23dbb1e9cde332033921b79b618 (diff) | |
download | GT5-Unofficial-375c022cab46d8c6c06c12e1e49a783ecf587479.tar.gz GT5-Unofficial-375c022cab46d8c6c06c12e1e49a783ecf587479.tar.bz2 GT5-Unofficial-375c022cab46d8c6c06c12e1e49a783ecf587479.zip |
Also add info on Vat NEI fluid input (#359)
Former-commit-id: 34873ab638692badb99b88962d2dbd70f0bed411
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/github/bartimaeusnek/bartworks/util/BWRecipes.java | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/util/BWRecipes.java b/src/main/java/com/github/bartimaeusnek/bartworks/util/BWRecipes.java index 643d1de694..a2ed19b776 100644 --- a/src/main/java/com/github/bartimaeusnek/bartworks/util/BWRecipes.java +++ b/src/main/java/com/github/bartimaeusnek/bartworks/util/BWRecipes.java @@ -808,17 +808,36 @@ public class BWRecipes { } @Override + protected List<String> handleNEIItemInputTooltip(List<String> currentTip, + GT_NEI_DefaultHandler.FixedPositionedStack pStack) { + if (pStack.isFluid()) { + currentTip.add(EnumChatFormatting.GRAY + StatCollector.translateToLocal("nei.biovat.input.tooltip")); + return currentTip; + } + return super.handleNEIItemInputTooltip(currentTip, pStack); + } + + @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")); + currentTip.add(EnumChatFormatting.GRAY + StatCollector.translateToLocal("nei.biovat.output.tooltip")); return currentTip; } return super.handleNEIItemOutputTooltip(currentTip, pStack); } @Override + protected void drawNEIOverlayForInput(GT_NEI_DefaultHandler.FixedPositionedStack stack) { + drawFluidOverlay(stack); + } + + @Override protected void drawNEIOverlayForOutput(GT_NEI_DefaultHandler.FixedPositionedStack stack) { + drawFluidOverlay(stack); + } + + private void drawFluidOverlay(GT_NEI_DefaultHandler.FixedPositionedStack stack) { if (stack.isFluid()) { drawNEIOverlayText( "+", |