Package codechicken.nei

Examples of codechicken.nei.PositionedStack


          inFluid = input.getFluidInput();
        }
      }

      inputs = new ArrayList<PositionedStack>();
      inputs.add(new PositionedStack(inputsOne, 51, 1));
      inputs.add(new PositionedStack(inputsTwo, 100, 1));

      this.energy = energy;
      this.result = result;
    }
View Full Code Here


    public List<PositionedStack> inputs = new ArrayList<PositionedStack>();
    public PositionedStack output;

    public CachedPetalApothecaryRecipe(RecipePetals recipe, boolean addCenterItem) {
      setIngredients(recipe.getInputs());
      output = new PositionedStack(recipe.getOutput(), 111, 21);
      if(addCenterItem)
        inputs.add(new PositionedStack(new ItemStack(ModBlocks.altar), 73, 55));
    }
View Full Code Here

      for(Object o : inputs) {
        int posX = (int) Math.round(73 + Math.cos(currentDegree * Math.PI / 180D) * 32);
        int posY = (int) Math.round(55 + Math.sin(currentDegree * Math.PI / 180D) * 32);

        if(o instanceof String)
          this.inputs.add(new PositionedStack(OreDictionary.getOres((String) o), posX, posY));
        else this.inputs.add(new PositionedStack(o, posX, posY));
        currentDegree += degreePerInput;
      }
    }
View Full Code Here

      if (vial == null)
        toVial = new ItemStack(ModItems.vial);
      else
        toVial = vial.copy();
      toVial.stackSize = 1;
      inputs.add(new PositionedStack(toVial, 39, 42));

      output = new PositionedStack(recipe.getOutput(toVial), 87, 42);
    }
View Full Code Here

      int left = 96 - (inputs.size() * 18 / 2);

      int i = 0;
      for (Object o : inputs) {
        if (o instanceof String)
          this.inputs.add(new PositionedStack(OreDictionary.getOres((String) o), left + i * 18, 6));
        else
          this.inputs.add(new PositionedStack(o, left + i * 18, 6));

        i++;
      }
    }
View Full Code Here

    public List<PositionedStack> inputs = new ArrayList<PositionedStack>();
    public PositionedStack output;

    public CachedElvenTradeRecipe(RecipeElvenTrade recipe) {
      setIngredients(recipe.getInputs());
      output = new PositionedStack(recipe.getOutput(), 107, 46);
    }
View Full Code Here

    public void setIngredients(List<Object> inputs) {
      int i = 0;
      for(Object o : inputs) {
        if(o instanceof String)
          this.inputs.add(new PositionedStack(OreDictionary.getOres((String) o), 60 + i * 18, 6));
        else this.inputs.add(new PositionedStack(o, 60 + i * 18, 6));
       
        i++;
      }
    }
View Full Code Here

    public PositionedStack output;
    public List<PositionedStack> otherStacks = new ArrayList<PositionedStack>();
    public int mana;

    public CachedManaPoolRecipe(RecipeManaInfusion recipe) {
      inputs.add(new PositionedStack(new ItemStack(ModBlocks.pool, 1, recipe.getOutput().getItem() == Item.getItemFromBlock(ModBlocks.pool) ? 2 : 0), 71, 37));

      if(recipe.getInput() instanceof String)
        inputs.add(new PositionedStack(OreDictionary.getOres((String) recipe.getInput()), 42, 37));
      else inputs.add(new PositionedStack(recipe.getInput(), 42, 37));

      if(recipe.isAlchemy())
        otherStacks.add(new PositionedStack(new ItemStack(ModBlocks.alchemyCatalyst), 10, 37));
      else if (recipe.isConjuration())
        otherStacks.add(new PositionedStack(new ItemStack(ModBlocks.conjurationCatalyst), 10, 37));

      output = new PositionedStack(recipe.getOutput(), 101, 37);
      mana = recipe.getManaToConsume();
    }
View Full Code Here

    public int manaUsage;

    public CachedRunicAltarRecipe(RecipeRuneAltar recipe) {
      super(recipe, false);
      manaUsage = recipe.getManaUsage();
      inputs.add(new PositionedStack(new ItemStack(ModBlocks.runeAltar), 73, 55));
    }
View Full Code Here

    @Override
    public PositionedStack getResult()
    {
      if(output.hasPrimary())
      {
        return new PositionedStack(output.primaryOutput, 100, 30);
      }

      return null;
    }
View Full Code Here

TOP

Related Classes of codechicken.nei.PositionedStack

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.