Package uristqwerty.CraftGuide.api

Examples of uristqwerty.CraftGuide.api.RecipeTemplate


    if (ForestryBlock.factoryTESR == null)
      return;

    ItemStack machine = ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_CENTRIFUGE_META);
    RecipeTemplate template = generator.createRecipeTemplate(slots, machine);

    for (MachineCentrifuge.Recipe recipe : MachineCentrifuge.RecipeManager.recipes) {
      Object[] array = new Object[11];

      ArrayList<Entry<ItemStack, Integer>> entries = new ArrayList<Entry<ItemStack, Integer>>(recipe.products.entrySet());
View Full Code Here


  @Override
  public void generateRecipes(RecipeGenerator generator) {

    ItemStack machine = new ItemStack(Blocks.crafting_table);
    RecipeTemplate template = generator.createRecipeTemplate(slots, machine, "/gui/CraftGuideRecipe.png", 1, 1, 82, 1);

    for (Object rec : CraftingManager.getInstance().getRecipeList()) {
      if (!(rec instanceof IDescriptiveRecipe))
        continue;
View Full Code Here

    if (ForestryBlock.factoryTESR == null)
      return;

    ItemStack machine = ForestryBlock.factoryPlain.getItemStack(1, Defaults.DEFINITION_FABRICATOR_META);
    RecipeTemplate template = generator.createRecipeTemplate(slots, machine);

    for (MachineFabricator.Recipe recipe : MachineFabricator.RecipeManager.recipes) {
      Object[] array = new Object[12];

      Object[] flattened = RecipeUtil.getCraftingRecipeAsArray(recipe.asIRecipe());
View Full Code Here

    if (ForestryBlock.factoryTESR == null)
      return;

    ItemStack machine = ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_FERMENTER_META);
    RecipeTemplate template = generator.createRecipeTemplate(slots, machine);
    List<Object> fuels = new ArrayList<Object>(FuelManager.fermenterFuel.keySet());

    for (MachineFermenter.Recipe recipe : MachineFermenter.RecipeManager.recipes) {
      Object[] array = new Object[5];
View Full Code Here

    if (ForestryBlock.factoryTESR == null)
      return;

    ItemStack machine = ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_BOTTLER_META);
    RecipeTemplate template = generator.createRecipeTemplate(slots, machine);

    for (MachineBottler.Recipe recipe : MachineBottler.RecipeManager.recipes) {
      Object[] array = new Object[4];

      array[0] = recipe.can;
View Full Code Here

    if (ForestryBlock.factoryTESR == null)
      return;

    ItemStack machine = ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_SQUEEZER_META);
    RecipeTemplate template = generator.createRecipeTemplate(slots, machine);

    for (MachineSqueezer.Recipe recipe : MachineSqueezer.RecipeManager.recipes) {
      Object[] array = new Object[12];

      System.arraycopy(recipe.resources, 0, array, 0, recipe.resources.length);
View Full Code Here

    if (ForestryBlock.factoryTESR == null)
      return;

    ItemStack machine = ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_STILL_META);
    RecipeTemplate template = generator.createRecipeTemplate(slots, machine);

    for (MachineStill.Recipe recipe : MachineStill.RecipeManager.recipes) {
      Object[] array = new Object[3];

      array[0] = recipe.input;
View Full Code Here

    if (ForestryBlock.factoryTESR == null)
      return;

    ItemStack machine = ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_CARPENTER_META);
    RecipeTemplate template = generator.createRecipeTemplate(slots, machine);

    for (MachineCarpenter.Recipe recipe : MachineCarpenter.RecipeManager.recipes) {
      Object[] array = new Object[12];

      Object[] flattened = RecipeUtil.getCraftingRecipeAsArray(recipe.asIRecipe());
View Full Code Here

  @Override
  public void generateRecipes(RecipeGenerator generator)
  {
    parent = generator;

    RecipeTemplate craftingTemplate;
    RecipeTemplate smallCraftingTemplate;

    if ( uristqwerty.CraftGuide.CraftGuide.newerBackgroundStyle )
    {
      craftingTemplate = generator.createRecipeTemplate( craftingSlotsOwnBackground, null );
      smallCraftingTemplate = generator.createRecipeTemplate( smallCraftingSlotsOwnBackground, null );
    }
    else
    {
      craftingTemplate = new DefaultRecipeTemplate( craftingSlots, RecipeGeneratorImplementation.workbench, new TextureClip(
          DynamicTexture.instance( "recipe_backgrounds" ), 1, 1, 79, 58 ), new TextureClip( DynamicTexture.instance( "recipe_backgrounds" ), 82, 1,
          79, 58 ) );

      smallCraftingTemplate = new DefaultRecipeTemplate( smallCraftingSlots, RecipeGeneratorImplementation.workbench, new TextureClip(
          DynamicTexture.instance( "recipe_backgrounds" ), 1, 61, 79, 58 ), new TextureClip( DynamicTexture.instance( "recipe_backgrounds" ), 82, 61,
          79, 58 ) );
    }

    RecipeTemplate shapelessTemplate = new DefaultRecipeTemplate( shapelessCraftingSlots, RecipeGeneratorImplementation.workbench, new TextureClip(
        DynamicTexture.instance( "recipe_backgrounds" ), 1, 121, 79, 58 ), new TextureClip( DynamicTexture.instance( "recipe_backgrounds" ), 82, 121,
        79, 58 ) );

    RecipeTemplate furnaceTemplate = new DefaultRecipeTemplate( furnaceSlots, new ItemStack( Blocks.furnace ), new TextureClip(
        DynamicTexture.instance( "recipe_backgrounds" ), 1, 181, 79, 58 ), new TextureClip( DynamicTexture.instance( "recipe_backgrounds" ), 82, 181,
        79, 58 ) );

    addCraftingRecipes( craftingTemplate, smallCraftingTemplate, shapelessTemplate, this );
    addGrinderRecipes( furnaceTemplate, this );
View Full Code Here

    @Override
    public void generateRecipes(RecipeGenerator generator) {
        ItemStack machine = EnumMachineAlpha.ROLLING_MACHINE.getItem();
        if(machine != null) {
            RecipeTemplate template = generator.createRecipeTemplate(slots, machine, "/gui/CraftGuideRecipe.png", 163, 1, 163, 61);

            for(IRecipe recipe : RailcraftCraftingManager.rollingMachine.getRecipeList()) {
                Object[] array = new Object[11];
                System.arraycopy(generator.getCraftingRecipe(recipe), 0, array, 0, 10);
                array[10] = machine;
View Full Code Here

TOP

Related Classes of uristqwerty.CraftGuide.api.RecipeTemplate

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.