Made the reconstructor recipe handlers show the additional needed amount of power

This commit is contained in:
Ellpeck 2016-11-02 20:55:47 +01:00
parent da082cbfa5
commit b5e358d72d
2 changed files with 7 additions and 0 deletions

View file

@ -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();

View file

@ -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;