Package mekanism.api

Examples of mekanism.api.PressurizedRecipe


   * @param extraEnergy - extra energy needed by the recipe
   * @param ticks - amount of ticks it takes for this recipe to complete
   */
  public static void addPRCRecipe(PressurizedReactants input, PressurizedProducts output, double extraEnergy, int ticks)
  {
    PressurizedRecipe recipe = new PressurizedRecipe(input, extraEnergy, output, ticks);
    Recipe.PRESSURIZED_REACTION_CHAMBER.put(input, recipe);
  }
View Full Code Here


    {
      ChargeUtils.discharge(1, this);

      if(canOperate() && MekanismUtils.canFunction(this) && getEnergy() >= MekanismUtils.getEnergyPerTick(this, ENERGY_PER_TICK))
      {
        PressurizedRecipe recipe = getRecipe();
        TICKS_REQUIRED = recipe.ticks;
        setActive(true);

        if((operatingTicks+1) < MekanismUtils.getTicks(this, TICKS_REQUIRED))
        {
View Full Code Here

  }

  @Override
  public void operate()
  {
    PressurizedRecipe recipe = getRecipe();

    recipe.reactants.use(inventory[0], inputFluidTank, inputGasTank);

    if(inventory[0].stackSize <= 0)
    {
View Full Code Here

  }

  @Override
  public boolean canOperate()
  {
    PressurizedRecipe recipe = getRecipe();

    if(recipe == null)
    {
      return false;
    }
View Full Code Here

TOP

Related Classes of mekanism.api.PressurizedRecipe

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.