From b5e358d72d8b3c6956a21710caf854602c3df9ce Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 2 Nov 2016 20:55:47 +0100 Subject: [PATCH] Made the reconstructor recipe handlers show the additional needed amount of power --- .../mod/booklet/page/PageReconstructor.java | 1 + .../mod/jei/reconstructor/ReconstructorRecipeWrapper.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/page/PageReconstructor.java b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/page/PageReconstructor.java index cde32392d..add3c82b0 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/page/PageReconstructor.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/page/PageReconstructor.java @@ -59,6 +59,7 @@ public class PageReconstructor extends BookletPageAA{ else{ String strg = "Atomic Reconstructor"; Minecraft.getMinecraft().fontRendererObj.drawString(strg, gui.getGuiLeft()+gui.getXSize()/2-Minecraft.getMinecraft().fontRendererObj.getStringWidth(strg)/2, gui.getGuiTop()+10, 0); + Minecraft.getMinecraft().fontRendererObj.drawString(recipe.energyUse+" RF", gui.getGuiLeft()+80, gui.getGuiTop()+30, 0, false); } String text = gui.getCurrentEntrySet().getCurrentPage().getText(); diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/jei/reconstructor/ReconstructorRecipeWrapper.java b/src/main/java/de/ellpeck/actuallyadditions/mod/jei/reconstructor/ReconstructorRecipeWrapper.java index 601d5736b..24a3742bd 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/jei/reconstructor/ReconstructorRecipeWrapper.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/jei/reconstructor/ReconstructorRecipeWrapper.java @@ -63,6 +63,12 @@ public class ReconstructorRecipeWrapper extends RecipeWrapperWithButton{ } + @Override + public void drawInfo(Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY){ + minecraft.fontRendererObj.drawString(this.theRecipe.energyUse+" RF", 55, 0, 0xFFFFFF, true); + super.drawInfo(minecraft, recipeWidth, recipeHeight, mouseX, mouseY); + } + @Override public int getButtonX(){ return 3;