@SideOnly(Side.CLIENT)
@Override
public void drawScreenPre(CategoryEntry entry, GUIBookBase base, int mouseX, int mouseY, float partialTicks, FontRenderer renderer) {
//base.drawCenteredString(renderer, TextFormatting.AQUA+"Recipe"+TextFormatting.RESET, base.getGuiLeft()+base.getGuiXSize()/2,base.getGuiTop()+30,0xFFFFFF);
base.mc.getTextureManager().bindTexture(GUIBookBase.BOOK_EXTRAS);
base.drawTexturedModalRect(base.getGuiLeft() + 20, base.getGuiTop() + 64, 45, 1, 124, 62);
int pos = 0;
RenderHelper.enableGUIStandardItemLighting();
for (Ingredient ingredient : recipe.getIngredients()) {
if (ingredient != null && ingredient.getMatchingStacks().length > 0)
base.mc.getRenderItem().renderItemIntoGUI(ingredient.getMatchingStacks()[0], base.getGuiLeft() + 25 + (pos % 3) * 18, base.getGuiTop() + 69 + (pos / 3) * 18);
++pos;
}
base.mc.getRenderItem().renderItemIntoGUI(recipe.getRecipeOutput(), base.getGuiLeft() + 25 + 94, base.getGuiTop() + 69 + 18);
}
PageRecipe.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:Industrial-Foregoing
作者:
评论列表
文章目录