Package mekanism.api

Examples of mekanism.api.PressurizedProducts


    RecipeHandler.addChemicalDissolutionChamberRecipe(new ItemStack(Blocks.obsidian), new GasStack(GasRegistry.getGas("obsidian"), 1000));

    //Pressurized Reaction Chamber Recipes
    RecipeHandler.addPRCRecipe(
        new PressurizedReactants(new ItemStack(BioFuel, 2), new FluidStack(FluidRegistry.WATER, 10), new GasStack(GasRegistry.getGas("hydrogen"), 100)),
        new PressurizedProducts(new ItemStack(Substrate), new GasStack(GasRegistry.getGas("ethene"), 100)),
        0,
        100
    );

    RecipeHandler.addPRCRecipe(
        new PressurizedReactants(new ItemStack(Substrate), new FluidStack(FluidRegistry.getFluid("ethene"), 50), new GasStack(GasRegistry.getGas("oxygen"), 10)),
        new PressurizedProducts(new ItemStack(Polyethene), new GasStack(GasRegistry.getGas("oxygen"), 5)),
        1000,
        60
    );

        //Infuse objects
View Full Code Here


    if(recipe == null)
    {
      return false;
    }

    PressurizedProducts products = recipe.products;

    if(products.getItemOutput() != null)
    {
      if(inventory[2] != null)
      {
        if(!inventory[2].isItemEqual(products.getItemOutput()))
        {
          return false;
        }
        else {
          if(inventory[2].stackSize + products.getItemOutput().stackSize > inventory[2].getMaxStackSize())
          {
            return false;
          }
        }
      }
    }

    if(products.getGasOutput() != null && outputGasTank.getGas() != null)
    {
      return products.getGasOutput().isGasEqual(outputGasTank.getGas()) && products.getGasOutput().amount <= outputGasTank.getNeeded();
    }

    return true;
  }
View Full Code Here

TOP

Related Classes of mekanism.api.PressurizedProducts

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.