Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void renderResearchInfoPage(int guiLeft, int guiTop, int xSize, int ySize)
- {
- super.renderResearchInfoPage(guiLeft, guiTop, xSize, ySize);
- RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
- int xPos;
- int yPos;
- GlStateManager.enableLighting();
- for (IRecipe recipe : recipes)
- {
- if (recipe instanceof ShapedRecipes)
- {
- ShapedRecipes shaped = (ShapedRecipes)recipe;
- for (int x = 0; x < shaped.recipeWidth; x ++)
- {
- for (int y = 0; y < shaped.recipeHeight; y ++)
- {
- xPos = guiLeft + 10 + x * 20;
- yPos = guiTop + 10 + y * 20;
- renderItem.renderItemAndEffectIntoGUI(shaped.recipeItems[y * shaped.recipeWidth + x], xPos, yPos);
- }
- }
- }
- }
- GlStateManager.disableLighting();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement