Package vazkii.botania.api.recipe

Examples of vazkii.botania.api.recipe.RecipeElvenTrade


  }

  @Override
  @SideOnly(Side.CLIENT)
  public void renderRecipe(IGuiLexiconEntry gui, int mx, int my) {
    RecipeElvenTrade recipe = recipes.get(recipeAt);
    TextureManager render = Minecraft.getMinecraft().renderEngine;
    render.bindTexture(elvenTradeOverlay);
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    GL11.glColor4f(1F, 1F, 1F, 1F);
    ((GuiScreen) gui).drawTexturedModalRect(gui.getLeft(), gui.getTop(), 0, 0, gui.getWidth(), gui.getHeight());
    GL11.glDisable(GL11.GL_BLEND);

    renderItemAtGridPos(gui, 3, 1, recipe.getOutput(), false);

    List<Object> inputs = recipe.getInputs();
    int i = 0;
    for(Object obj : inputs) {
      Object input = obj;
      if(input instanceof String)
        input = OreDictionary.getOres((String) input).get(0);
View Full Code Here


   * @param output The ItemStack to return.
   * @param inputs The items required, can be ItemStack or ore dictionary entry string.
   * @return The recipe created.
   */
  public static RecipeElvenTrade registerElvenTradeRecipe(ItemStack output, Object... inputs) {
    RecipeElvenTrade recipe = new RecipeElvenTrade(output, inputs);
    elvenTradeRecipes.add(recipe);
    return recipe;
  }
View Full Code Here

TOP

Related Classes of vazkii.botania.api.recipe.RecipeElvenTrade

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.