mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-26 21:09:23 +01:00
Made the reconstructor recipe handlers show the additional needed amount of power
This commit is contained in:
parent
da082cbfa5
commit
b5e358d72d
2 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue