Package codechicken.nei

Examples of codechicken.nei.PositionedStack


    public CachedIORecipe(ItemStack input, ItemStack output, List<ItemStack> infuses, InfuseType type)
    {
      super();

      inputStack = new PositionedStack(input, 46, 28);
      outputStack = new PositionedStack(output, 104, 28);

      infuseStacks = infuses;

      infusionType = type;
    }
View Full Code Here


    {
      super();
     
      pressurizedRecipe = recipe;
     
      input = new PositionedStack(recipe.reactants.getSolid(), 54-xOffset, 35-yOffset);
      output = new PositionedStack(recipe.products.getItemOutput(), 116-xOffset, 35-yOffset);
    }
View Full Code Here

    }

    @Override
    public PositionedStack getOtherStack()
    {
      return new PositionedStack(infuseStacks.get(cycleticks/40 % infuseStacks.size()), 12, 20);
    }
View Full Code Here

    }

    public CachedIORecipe(GasStack input, ItemStack output)
    {
      inputStack = input;
      outputStack = new PositionedStack(output, 131-xOffset, 57-yOffset);
    }
View Full Code Here

    {
        public ArrayList<PositionedStack> ingredients;
        public PositionedStack result;

        public CachedShapedRecipe(int width, int height, Object[] items, ItemStack out) {
            result = new PositionedStack(out, 119, 24);
            ingredients = new ArrayList<PositionedStack>();
            setIngredients(width, height, items);
        }
View Full Code Here

            for (int x = 0; x < width; x++) {
                for (int y = 0; y < height; y++) {
                    if (items[y * width + x] == null)
                        continue;

                    PositionedStack stack = new PositionedStack(items[y * width + x], 25 + x * 18, 6 + y * 18, false);
                    stack.setMaxSize(1);
                    ingredients.add(stack);
                }
            }
        }
View Full Code Here

{
    public class SmeltingPair extends CachedRecipe
    {
        public SmeltingPair(ItemStack ingred, ItemStack result) {
            ingred.stackSize = 1;
            this.ingred = new PositionedStack(ingred, 51, 6);
            this.result = new PositionedStack(result, 111, 24);
        }
View Full Code Here

    }

    public static class FuelPair
    {
        public FuelPair(ItemStack ingred, int burnTime) {
            this.stack = new PositionedStack(ingred, 51, 42, false);
            this.burnTime = burnTime;
        }
View Full Code Here

        public PositionedStack precursorPotion;
        public PositionedStack result;
        public PositionedStack ingredient;

        public BrewingRecipe(ItemStack ingred, int basePotionID, int resultDamage) {
            precursorPotion = new PositionedStack(new ItemStack(potionitem, 1, basePotionID), 51, 35);
            ingredient = new PositionedStack(ingred, 74, 6);
            result = new PositionedStack(new ItemStack(potionitem, 1, resultDamage), 97, 35);
        }
View Full Code Here

        }

        public void setIngredients(List<?> items) {
            ingredients.clear();
            for (int ingred = 0; ingred < items.size(); ingred++) {
                PositionedStack stack = new PositionedStack(items.get(ingred), 25 + stackorder[ingred][0] * 18, 6 + stackorder[ingred][1] * 18);
                stack.setMaxSize(1);
                ingredients.add(stack);
            }
        }
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.