public class RecipeRegistry extends java.lang.Object implements IRecipeRegistry
| Constructor and Description |
|---|
RecipeRegistry(java.util.List<IRecipeCategory> recipeCategories,
java.util.List<IRecipeHandler> recipeHandlers,
java.util.List<IRecipeTransferHandler> recipeTransferHandlers,
java.util.List<java.lang.Object> recipes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecipe(java.lang.Object recipe)
Add a new recipe while the game is running.
|
com.google.common.collect.ImmutableList<IRecipeCategory> |
getRecipeCategories()
Returns an unmodifiable list of Recipe Categories
|
com.google.common.collect.ImmutableList<IRecipeCategory> |
getRecipeCategoriesWithInput(net.minecraftforge.fluids.Fluid input)
Returns an unmodifiable list of Recipe Categories that have the Fluid as an input
|
com.google.common.collect.ImmutableList<IRecipeCategory> |
getRecipeCategoriesWithInput(net.minecraft.item.ItemStack input)
Returns an unmodifiable list of Recipe Categories that have the ItemStack as an input
|
com.google.common.collect.ImmutableList<IRecipeCategory> |
getRecipeCategoriesWithOutput(net.minecraftforge.fluids.Fluid output)
Returns an unmodifiable list of Recipe Categories that have the Fluid as an output
|
com.google.common.collect.ImmutableList<IRecipeCategory> |
getRecipeCategoriesWithOutput(net.minecraft.item.ItemStack output)
Returns an unmodifiable list of Recipe Categories that have the ItemStack as an output
|
IRecipeHandler |
getRecipeHandler(java.lang.Class recipeClass)
Returns the IRecipeHandler associated with the recipeClass or null if there is none
|
java.util.List<java.lang.Object> |
getRecipes(IRecipeCategory recipeCategory)
Returns an unmodifiable list of Recipes in recipeCategory
|
java.util.List<java.lang.Object> |
getRecipesWithInput(IRecipeCategory recipeCategory,
net.minecraftforge.fluids.Fluid input)
Returns an unmodifiable list of Recipes of recipeCategory that have the Fluid as an input
|
com.google.common.collect.ImmutableList<java.lang.Object> |
getRecipesWithInput(IRecipeCategory recipeCategory,
net.minecraft.item.ItemStack input)
Returns an unmodifiable list of Recipes of recipeCategory that have the ItemStack as an input
|
java.util.List<java.lang.Object> |
getRecipesWithOutput(IRecipeCategory recipeCategory,
net.minecraftforge.fluids.Fluid output)
Returns an unmodifiable list of Recipes of recipeCategory that have the Fluid as an output
|
com.google.common.collect.ImmutableList<java.lang.Object> |
getRecipesWithOutput(IRecipeCategory recipeCategory,
net.minecraft.item.ItemStack output)
Returns an unmodifiable list of Recipes of recipeCategory that have the ItemStack as an output
|
IRecipeTransferHandler |
getRecipeTransferHandler(net.minecraft.inventory.Container container,
IRecipeCategory recipeCategory) |
IRecipeTransferHelper |
getRecipeTransferHelper(net.minecraft.inventory.Container container,
IRecipeCategory recipeCategory) |
public RecipeRegistry(@Nonnull
java.util.List<IRecipeCategory> recipeCategories,
@Nonnull
java.util.List<IRecipeHandler> recipeHandlers,
@Nonnull
java.util.List<IRecipeTransferHandler> recipeTransferHandlers,
@Nonnull
java.util.List<java.lang.Object> recipes)
public void addRecipe(@Nullable
java.lang.Object recipe)
IRecipeRegistryaddRecipe in interface IRecipeRegistry@Nonnull public com.google.common.collect.ImmutableList<IRecipeCategory> getRecipeCategories()
IRecipeRegistrygetRecipeCategories in interface IRecipeRegistry@Nullable public IRecipeHandler getRecipeHandler(@Nullable java.lang.Class recipeClass)
IRecipeRegistrygetRecipeHandler in interface IRecipeRegistry@Nonnull public com.google.common.collect.ImmutableList<IRecipeCategory> getRecipeCategoriesWithInput(@Nullable net.minecraft.item.ItemStack input)
IRecipeRegistrygetRecipeCategoriesWithInput in interface IRecipeRegistry@Nonnull public com.google.common.collect.ImmutableList<IRecipeCategory> getRecipeCategoriesWithInput(@Nullable net.minecraftforge.fluids.Fluid input)
IRecipeRegistrygetRecipeCategoriesWithInput in interface IRecipeRegistry@Nonnull public com.google.common.collect.ImmutableList<IRecipeCategory> getRecipeCategoriesWithOutput(@Nullable net.minecraft.item.ItemStack output)
IRecipeRegistrygetRecipeCategoriesWithOutput in interface IRecipeRegistry@Nonnull public com.google.common.collect.ImmutableList<IRecipeCategory> getRecipeCategoriesWithOutput(@Nullable net.minecraftforge.fluids.Fluid output)
IRecipeRegistrygetRecipeCategoriesWithOutput in interface IRecipeRegistry@Nonnull
public com.google.common.collect.ImmutableList<java.lang.Object> getRecipesWithInput(@Nullable
IRecipeCategory recipeCategory,
@Nullable
net.minecraft.item.ItemStack input)
IRecipeRegistrygetRecipesWithInput in interface IRecipeRegistry@Nonnull
public java.util.List<java.lang.Object> getRecipesWithInput(@Nullable
IRecipeCategory recipeCategory,
@Nullable
net.minecraftforge.fluids.Fluid input)
IRecipeRegistrygetRecipesWithInput in interface IRecipeRegistry@Nonnull
public com.google.common.collect.ImmutableList<java.lang.Object> getRecipesWithOutput(@Nullable
IRecipeCategory recipeCategory,
@Nullable
net.minecraft.item.ItemStack output)
IRecipeRegistrygetRecipesWithOutput in interface IRecipeRegistry@Nonnull
public java.util.List<java.lang.Object> getRecipesWithOutput(@Nullable
IRecipeCategory recipeCategory,
@Nullable
net.minecraftforge.fluids.Fluid output)
IRecipeRegistrygetRecipesWithOutput in interface IRecipeRegistry@Nonnull
public java.util.List<java.lang.Object> getRecipes(@Nullable
IRecipeCategory recipeCategory)
IRecipeRegistrygetRecipes in interface IRecipeRegistry@Nullable public IRecipeTransferHelper getRecipeTransferHelper(@Nullable net.minecraft.inventory.Container container, @Nullable IRecipeCategory recipeCategory)
getRecipeTransferHelper in interface IRecipeRegistry@Nullable public IRecipeTransferHandler getRecipeTransferHandler(@Nullable net.minecraft.inventory.Container container, @Nullable IRecipeCategory recipeCategory)