Examples of FluidStack


Examples of net.minecraftforge.fluids.FluidStack

    for (IRecipe recipe : recipes) {
      boolean addRecipe = false;
      if(recipe.isValidInput(0, ingredient) || recipe.isValidInput(1, ingredient)) {
        addRecipe = true;
      } else if(FluidContainerRegistry.isFilledContainer(ingredient)) {
        FluidStack fluid = FluidContainerRegistry.getFluidForFilledItem(ingredient);
        if(fluid != null) {
          if(recipe.isValidInput(fluid)) {
            addRecipe = true;
          }
        }
      }
      if(addRecipe) {
        FluidStack output = recipe.getOutputs()[0].getFluidOutput();
        InnerVatRecipe res = new InnerVatRecipe(recipe.getEnergyRequired(), recipe.getInputs(), output);
        res.setIngredientPermutation(res.inputs, ingredient);
        arecipes.add(res);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.