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

Commit

Permalink
update + sa
Browse files Browse the repository at this point in the history
  • Loading branch information
Dream-Master committed May 10, 2024
1 parent 60e35ac commit c7c9a07
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
6 changes: 3 additions & 3 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Add your dependencies here

dependencies {
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.46.05:dev')
implementation('com.github.GTNewHorizons:GTplusplus:1.12.2:dev')
implementation('com.github.GTNewHorizons:GoodGenerator:0.9.1:dev')
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.46.09:dev')
implementation('com.github.GTNewHorizons:GTplusplus:1.12.7:dev')
implementation('com.github.GTNewHorizons:GoodGenerator:0.9.3:dev')
implementation('com.github.GTNewHorizons:NewHorizonsCoreMod:2.4.5:dev')
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

import java.util.List;

import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;

import com.elisis.gtnhlanth.util.Util;
import com.gtnewhorizons.modularui.api.math.Pos2d;

Expand All @@ -15,8 +18,6 @@
import gregtech.common.gui.modularui.UIHelper;
import gregtech.nei.GT_NEI_DefaultHandler;
import gregtech.nei.RecipeDisplayInfo;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;

public class TargetChamberFrontend extends RecipeMapFrontend {

Expand All @@ -32,22 +33,27 @@ public void drawDescription(RecipeDisplayInfo recipeInfo) {
drawMetadataInfo(recipeInfo);
drawRecipeOwnerInfo(recipeInfo);
}

@Override
protected void drawNEIOverlayForInput(GT_NEI_DefaultHandler.FixedPositionedStack stack) {
if (stack.isNotConsumed()) { // The stack actually takes damage, but is technically still not considered to be consumed by the code
drawNEIOverlayText("PC", stack);
}
if (stack.isNotConsumed()) { // The stack actually takes damage, but is technically still not considered to be
// consumed by the code
drawNEIOverlayText("PC", stack);
}
}

@Override
protected List<String> handleNEIItemInputTooltip(List<String> currentTip,
GT_NEI_DefaultHandler.FixedPositionedStack pStack) {
if (pStack.isNotConsumed()) { // See above
currentTip.add(EnumChatFormatting.GRAY + StatCollector.translateToLocal("gtnhlanth.tt.pc")); // Partially consumed: Takes damage in the process
}
return currentTip;
if (pStack.isNotConsumed()) { // See above
currentTip.add(EnumChatFormatting.GRAY + StatCollector.translateToLocal("gtnhlanth.tt.pc")); // Partially
// consumed:
// Takes damage
// in the
// process
}
return currentTip;
}

@Override
public void drawEnergyInfo(RecipeDisplayInfo recipeInfo) {
Expand Down

0 comments on commit c7c9a07

Please sign in to comment.