public class FermenterRecipeManager extends java.lang.Object implements IFermenterManager
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<net.minecraftforge.fluids.Fluid> |
recipeFluidInputs |
static java.util.Set<net.minecraftforge.fluids.Fluid> |
recipeFluidOutputs |
| Constructor and Description |
|---|
FermenterRecipeManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRecipe(IFermenterRecipe recipe)
Add a new recipe to the crafting provider.
|
void |
addRecipe(net.minecraft.item.ItemStack resource,
int fermentationValue,
float modifier,
net.minecraftforge.fluids.FluidStack output)
Add a recipe to the fermenter.
|
void |
addRecipe(net.minecraft.item.ItemStack resource,
int fermentationValue,
float modifier,
net.minecraftforge.fluids.FluidStack output,
net.minecraftforge.fluids.FluidStack liquid)
Add a recipe to the fermenter
|
void |
addRecipe(java.lang.String resourceOreName,
int fermentationValue,
float modifier,
net.minecraftforge.fluids.FluidStack output)
Add a recipe to the fermenter.
|
void |
addRecipe(java.lang.String resourceOreName,
int fermentationValue,
float modifier,
net.minecraftforge.fluids.FluidStack output,
net.minecraftforge.fluids.FluidStack liquid)
Add a recipe to the fermenter
|
static IFermenterRecipe |
findMatchingRecipe(net.minecraft.item.ItemStack res,
net.minecraftforge.fluids.FluidStack liqu) |
static boolean |
isResource(net.minecraft.item.ItemStack resource) |
static boolean |
matches(IFermenterRecipe recipe,
net.minecraft.item.ItemStack res,
net.minecraftforge.fluids.FluidStack liqu) |
java.util.Set<IFermenterRecipe> |
recipes() |
boolean |
removeRecipe(IFermenterRecipe recipe)
Remove a specific recipe from the crafting provider.
|
public static final java.util.Set<net.minecraftforge.fluids.Fluid> recipeFluidInputs
public static final java.util.Set<net.minecraftforge.fluids.Fluid> recipeFluidOutputs
public void addRecipe(net.minecraft.item.ItemStack resource,
int fermentationValue,
float modifier,
net.minecraftforge.fluids.FluidStack output,
net.minecraftforge.fluids.FluidStack liquid)
IFermenterManageraddRecipe in interface IFermenterManagerresource - ItemStack representing the resource.fermentationValue - Value of the given resource, i.e. how much needs
to be fermented for the output to be deposited into the product tank.modifier - Modifies the amount of liquid output per work cycle.
(water = 1.0f, honey = 1.5f)output - LiquidStack representing output liquid. Amount is
determined by fermentationValue*modifier.liquid - LiquidStack representing resource liquid and amount.public void addRecipe(net.minecraft.item.ItemStack resource,
int fermentationValue,
float modifier,
net.minecraftforge.fluids.FluidStack output)
IFermenterManageraddRecipe in interface IFermenterManagerresource - ItemStack representing the resource.fermentationValue - Value of the given resource, i.e. how much needs
to be fermented for the output to be deposited into the product tank.modifier - Modifies the amount of liquid output per work cycle.
(water = 1.0f, honey = 1.5f)output - LiquidStack representing output liquid. Amount is
determined by fermentationValue*modifier.public void addRecipe(java.lang.String resourceOreName,
int fermentationValue,
float modifier,
net.minecraftforge.fluids.FluidStack output,
net.minecraftforge.fluids.FluidStack liquid)
IFermenterManageraddRecipe in interface IFermenterManagerresourceOreName - String representing the resource as a OreDictionary name.fermentationValue - Value of the given resource, i.e. how much needs
to be fermented for the output to be deposited into the product tank.modifier - Modifies the amount of liquid output per work cycle.
(water = 1.0f, honey = 1.5f)output - LiquidStack representing output liquid. Amount is
determined by fermentationValue*modifier.liquid - LiquidStack representing resource liquid and amount.public void addRecipe(java.lang.String resourceOreName,
int fermentationValue,
float modifier,
net.minecraftforge.fluids.FluidStack output)
IFermenterManageraddRecipe in interface IFermenterManagerresourceOreName - String representing the resource as a OreDictionary name.fermentationValue - Value of the given resource, i.e. how much needs
to be fermented for the output to be deposited into the product tank.modifier - Modifies the amount of liquid output per work cycle.
(water = 1.0f, honey = 1.5f)output - LiquidStack representing output liquid. Amount is
determined by fermentationValue*modifier.@Nullable public static IFermenterRecipe findMatchingRecipe(net.minecraft.item.ItemStack res, net.minecraftforge.fluids.FluidStack liqu)
public static boolean matches(IFermenterRecipe recipe, net.minecraft.item.ItemStack res, net.minecraftforge.fluids.FluidStack liqu)
public static boolean isResource(net.minecraft.item.ItemStack resource)
public boolean addRecipe(IFermenterRecipe recipe)
ICraftingProvideraddRecipe in interface ICraftingProvider<IFermenterRecipe>public boolean removeRecipe(IFermenterRecipe recipe)
ICraftingProviderremoveRecipe in interface ICraftingProvider<IFermenterRecipe>public java.util.Set<IFermenterRecipe> recipes()
recipes in interface ICraftingProvider<IFermenterRecipe>