public class SqueezerRecipeManager extends java.lang.Object implements ISqueezerManager
| Modifier and Type | Field and Description |
|---|---|
static ItemStackMap<ISqueezerContainerRecipe> |
containerRecipes |
| Constructor and Description |
|---|
SqueezerRecipeManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContainerRecipe(int timePerItem,
net.minecraft.item.ItemStack emptyContainer,
net.minecraft.item.ItemStack remnants,
float chance)
Add a recipe for a fluid container to the squeezer.
|
void |
addRecipe(int timePerItem,
net.minecraft.item.ItemStack resources,
net.minecraftforge.fluids.FluidStack liquid)
Add a recipe to the squeezer.
|
void |
addRecipe(int timePerItem,
net.minecraft.item.ItemStack resources,
net.minecraftforge.fluids.FluidStack liquid,
net.minecraft.item.ItemStack remnants,
int chance)
Add a recipe to the squeezer.
|
void |
addRecipe(int timePerItem,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> resources,
net.minecraftforge.fluids.FluidStack liquid)
Add a recipe to the squeezer.
|
void |
addRecipe(int timePerItem,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> resources,
net.minecraftforge.fluids.FluidStack liquid,
net.minecraft.item.ItemStack remnants,
int chance)
Add a recipe to the squeezer.
|
boolean |
addRecipe(ISqueezerRecipe recipe)
Add a new recipe to the crafting provider.
|
static boolean |
canUse(net.minecraft.item.ItemStack itemStack) |
static ISqueezerContainerRecipe |
findMatchingContainerRecipe(net.minecraft.item.ItemStack filledContainer) |
static ISqueezerRecipe |
findMatchingRecipe(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items) |
java.util.Set<ISqueezerRecipe> |
recipes() |
boolean |
removeRecipe(ISqueezerRecipe recipe)
Remove a specific recipe from the crafting provider.
|
public static final ItemStackMap<ISqueezerContainerRecipe> containerRecipes
public void addRecipe(int timePerItem,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> resources,
net.minecraftforge.fluids.FluidStack liquid,
net.minecraft.item.ItemStack remnants,
int chance)
ISqueezerManageraddRecipe in interface ISqueezerManagertimePerItem - Number of work cycles required to squeeze one set of resources.resources - Array of item stacks representing the required resources for one process. Stack size will be taken into account.liquid - FluidStack representing the output of this recipe.remnants - Item stack representing the possible remnants from this recipe. May be empty.chance - Chance remnants will be produced by a single recipe cycle, from 0 to 100.public void addRecipe(int timePerItem,
net.minecraft.item.ItemStack resources,
net.minecraftforge.fluids.FluidStack liquid,
net.minecraft.item.ItemStack remnants,
int chance)
ISqueezerManageraddRecipe in interface ISqueezerManagertimePerItem - Number of work cycles required to squeeze one set of resources.resources - item stack representing the required resources for one process. Stack size will be taken into account.liquid - FluidStack representing the output of this recipe.remnants - Item stack representing the possible remnants from this recipe. May be empty.chance - Chance remnants will be produced by a single recipe cycle, from 0 to 100.public void addRecipe(int timePerItem,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> resources,
net.minecraftforge.fluids.FluidStack liquid)
ISqueezerManageraddRecipe in interface ISqueezerManagertimePerItem - Number of work cycles required to squeeze one set of resources.resources - Array of item stacks representing the required resources for one process. Stack size will be taken into account.liquid - FluidStack representing the output of this recipe.public void addRecipe(int timePerItem,
net.minecraft.item.ItemStack resources,
net.minecraftforge.fluids.FluidStack liquid)
ISqueezerManageraddRecipe in interface ISqueezerManagertimePerItem - Number of work cycles required to squeeze one set of resources.resources - item stack representing the required resources for one process. Stack size will be taken into account.liquid - FluidStack representing the output of this recipe.public void addContainerRecipe(int timePerItem,
net.minecraft.item.ItemStack emptyContainer,
net.minecraft.item.ItemStack remnants,
float chance)
ISqueezerManageraddContainerRecipe in interface ISqueezerManagertimePerItem - Number of work cycles required to squeeze one set of resources.emptyContainer - The empty version of the fluid container that will be squeezed.remnants - Item stack representing the possible remnants from this recipe. May be empty.chance - Chance remnants will be produced by a single recipe cycle, from 0 to 1.@Nullable public static ISqueezerContainerRecipe findMatchingContainerRecipe(net.minecraft.item.ItemStack filledContainer)
@Nullable public static ISqueezerRecipe findMatchingRecipe(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
public static boolean canUse(net.minecraft.item.ItemStack itemStack)
public boolean addRecipe(ISqueezerRecipe recipe)
ICraftingProvideraddRecipe in interface ICraftingProvider<ISqueezerRecipe>public boolean removeRecipe(ISqueezerRecipe recipe)
ICraftingProviderremoveRecipe in interface ICraftingProvider<ISqueezerRecipe>public java.util.Set<ISqueezerRecipe> recipes()
recipes in interface ICraftingProvider<ISqueezerRecipe>