Scaled down the info in nei handlers
Scaled up the fluid renders for nei handlers
This commit is contained in:
parent
a0a97a405b
commit
737d7e34a3
2 changed files with 10 additions and 18 deletions
|
@ -76,16 +76,11 @@ public abstract class GenericRecipeHander extends TemplateRecipeHandler {
|
|||
CachedRecipe recipe = arecipes.get(recipeIndex);
|
||||
if (recipe instanceof CachedGenericRecipe) {
|
||||
CachedGenericRecipe genericRecipe = (CachedGenericRecipe) recipe;
|
||||
GuiDraw.drawString(
|
||||
"EU needed: "
|
||||
+ (ConfigTechReborn.CentrifugeInputTick * genericRecipe.recipie
|
||||
.tickTime()), 14, 94, -1);
|
||||
GuiDraw.drawString("Ticks to smelt: "
|
||||
+ genericRecipe.recipie.tickTime(), 14,
|
||||
104, -1);
|
||||
GuiDraw.drawString("Time to smelt: "
|
||||
+ genericRecipe.recipie.tickTime() / 20
|
||||
+ " seconds", 14, 114, -1);
|
||||
float scale = 0.9F;
|
||||
GL11.glScalef(scale, scale, scale);
|
||||
GuiDraw.drawString("EU needed: " + (ConfigTechReborn.CentrifugeInputTick * genericRecipe.recipie.tickTime()), 16, 105, -1);
|
||||
GuiDraw.drawString("Ticks to smelt: "+ genericRecipe.recipie.tickTime(), 14, 115, -1);
|
||||
GuiDraw.drawString("Time to smelt: " + genericRecipe.recipie.tickTime() / 20 + " seconds", 14, 125, -1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -14,6 +14,8 @@ import techreborn.util.ItemUtils;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class GrinderRecipeHandler extends GenericRecipeHander implements INeiBaseRecipe {
|
||||
@Override
|
||||
public void addPositionedStacks(List<PositionedStack> input, List<PositionedStack> outputs, IBaseRecipeType recipeType) {
|
||||
|
@ -80,18 +82,13 @@ public class GrinderRecipeHandler extends GenericRecipeHander implements INeiBas
|
|||
if (grinderRecipe.fluidStack != null) {
|
||||
IIcon fluidIcon = grinderRecipe.fluidStack.getFluid().getIcon();
|
||||
if (fluidIcon != null) {
|
||||
// GuiDraw.drawRect(7, 16, 176, 31, 0);
|
||||
// drawTexturedModalRect(k + 7, l + 15, 176, 31, 20, 55);
|
||||
|
||||
Minecraft.getMinecraft().getTextureManager().bindTexture(TextureMap.locationBlocksTexture);
|
||||
int liquidHeight = grinderRecipe.fluidStack.amount * 47 / 16000;
|
||||
DrawUtil.drawRepeated(fluidIcon, 11, 19 + 47 - liquidHeight, 12.0D, liquidHeight, GuiDraw.gui.getZLevel());
|
||||
int liquidHeight = grinderRecipe.fluidStack.amount * 100 / 16000;
|
||||
DrawUtil.drawRepeated(fluidIcon, 7, 22 + 47 - liquidHeight, 14.0D, liquidHeight, GuiDraw.gui.getZLevel());
|
||||
|
||||
|
||||
// this.mc.renderEngine.bindTexture(texture);
|
||||
// drawTexturedModalRect(k + 11, l + 19, 176, 86, 12, 47);
|
||||
}
|
||||
GuiDraw.drawString(grinderRecipe.fluidStack.amount + "mb of " + grinderRecipe.fluidStack.getLocalizedName(), 14, 124, -1);
|
||||
GuiDraw.drawString(grinderRecipe.fluidStack.amount + "mb of " + grinderRecipe.fluidStack.getLocalizedName(), 14, 135, -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue