Package codechicken.nei

Examples of codechicken.nei.PositionedStack


            IIngredient ing = (IIngredient) items[(y * width + x)];

            try
            {
              ItemStack[] is = ing.getItemStackSet();
              PositionedStack stack = new PositionedStack( useSingleItems ? Platform.findPreferred( is ) : is, 25 + x * 18, 6 + y * 18, false );
              stack.setMaxSize( 1 );
              this.ingredients.add( stack );
            }
            catch (RegistrationError ignored)
            {

View Full Code Here


    public EnergyValue minEnergyValue;
    public EnergyValue maxEnergyValue;

    public CachedCalcinationRecipe(ItemStack outputDust)
    {
      output = new PositionedStack(outputDust, 101, 19);
     
      inputs = new ArrayList<PositionedStack>();

      minEnergyValue = EnergyValueRegistryProxy.getEnergyValue(outputDust);
      maxEnergyValue = (outputDust.getItemDamage() < (ItemAlchemicalDust.getAlchemicalDusts().size() - 1) ? EnergyValueRegistryProxy.getEnergyValue(ItemAlchemicalDust.getAlchemicalDusts().get(outputDust.getItemDamage() + 1)) : new EnergyValue(Float.MAX_VALUE, EnergyType.CORPOREAL));

      for (Object obj : EnergyValueRegistryProxy.getStacksInRange(minEnergyValue, maxEnergyValue))
      {
        if (obj instanceof ItemStack)
        {
          inputs.add(new PositionedStack((ItemStack) obj, 40, 0));
        }
      }
    }
View Full Code Here

    }

    public CachedCalcinationRecipe(ItemStack inputStack, ItemStack outputDust)
    {
      inputStack.stackSize = 1;
      inputs = Arrays.asList(new PositionedStack[] { new PositionedStack(inputStack, 40, 0) });

      output = new PositionedStack(outputDust, 101, 19);

      minEnergyValue = EnergyValueRegistryProxy.getEnergyValue(outputDust);
      maxEnergyValue = (outputDust.getItemDamage() < (ItemAlchemicalDust.getAlchemicalDusts().size() - 1) ? EnergyValueRegistryProxy.getEnergyValue(ItemAlchemicalDust.getAlchemicalDusts().get(outputDust.getItemDamage() + 1)) : new EnergyValue(Float.MAX_VALUE, EnergyType.CORPOREAL));
    }
View Full Code Here

      return inputs.get((cycleticks / 48) % inputs.size());
    }

    public PositionedStack getOtherStack()
    {
      return new PositionedStack(FurnaceRecipeHandler.afuels.get((cycleticks / 48) % FurnaceRecipeHandler.afuels.size()).stack.item, 40, 45);
    }
View Full Code Here

    public PositionedStack output;

    public CachedAludelRecipe(RecipeAludel recipe)
    {
      WrappedStack[] wrappedInputs = recipe.getRecipeInputs();
      inputs = Arrays.asList(new PositionedStack(new ItemStack(((ItemStack) wrappedInputs[0].getWrappedStack()).getItem(), wrappedInputs[0].getStackSize(), ((ItemStack) wrappedInputs[0].getWrappedStack()).getItemDamage()), 37, 7), new PositionedStack(new ItemStack(((ItemStack) wrappedInputs[1].getWrappedStack()).getItem(), wrappedInputs[1].getStackSize(), ((ItemStack) wrappedInputs[1].getWrappedStack()).getItemDamage()), 37, 28));

      output = new PositionedStack(recipe.getRecipeOutput(), 113, 28);
     
    }
View Full Code Here

      return inputs;
    }

    public PositionedStack getOtherStack()
    {
      return new PositionedStack(FurnaceRecipeHandler.afuels.get((cycleticks / 48) % FurnaceRecipeHandler.afuels.size()).stack.item, 37, 63);
    }
View Full Code Here

        private int temperature;
        private FluidTankElement output;

        public CachedMeltingRecipe(ItemStack input)
        {
            this.input = new PositionedStack(input, 28, 21);
            this.temperature = Smeltery.getLiquifyTemperature(input);
            this.output = new FluidTankElement(MOLTEN_TANK, 1, Smeltery.getSmelteryResult(input));
            this.output.capacity = this.output.fluid != null ? this.output.fluid.amount : 1000;
        }
View Full Code Here

            this.metal = new FluidTankElement(MOLTEN_FLOW, recipe.castingMetal.amount, recipe.castingMetal);
            this.metal.flowingTexture = true;
            this.resources = new ArrayList<PositionedStack>();
            if (recipe.cast != null)
            {
                this.resources.add(new PositionedStack(recipe.cast, 55, 19));
            }
            else
            {
                this.metal.position = MOLTEN_FLOW_NO_ITEM;
            }
            this.output = new PositionedStack(recipe.output, 110, 18);
        }
View Full Code Here

        public PositionedStack output;
        public int time;

        public CachedDryingRackRecipe(DryingRecipe drying)
        {
            this.input = new PositionedStack(drying.input, 44, 18);
            this.output = new PositionedStack(drying.result, 98, 18);
            this.time = drying.time;
        }
View Full Code Here

        public CachedToolMaterialsRecipe(List<ItemStack> toolParts, int materialID)
        {
            this.toolParts = new ArrayList<PositionedStack>();
            for (ItemStack stack : toolParts)
            {
                this.toolParts.add(new PositionedStack(stack, 10, 10));
            }
            this.material = TConstructRegistry.getMaterial(materialID);
        }
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.