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

Commit

Permalink
Also add info on Vat NEI fluid input (#359)
Browse files Browse the repository at this point in the history
Former-commit-id: c87936ca8c6c028654ed9413013b9a4f851e0687
  • Loading branch information
miozune authored Sep 14, 2023
1 parent b20ae38 commit 77d7c42
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -807,18 +807,37 @@ public GT_Recipe addRecipe(GT_Recipe aRecipe) {
return this.addRecipe(aRecipe, false, false, false);
}

@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(
"+",
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/assets/bartworks/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ 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
nei.biovat.input.tooltip=Consumed up to 1,001x amount, depending on output rate
nei.biovat.output.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 77d7c42

Please sign in to comment.