public class IntegrationRecipeRegistry extends java.lang.Object implements IIntegrationRecipeRegistry
Modifier and Type | Field and Description |
---|---|
static IntegrationRecipeRegistry |
INSTANCE |
java.util.Map<net.minecraft.util.ResourceLocation,IntegrationRecipe> |
recipes |
Constructor and Description |
---|
IntegrationRecipeRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addRecipe(IntegrationRecipe recipe) |
java.lang.Iterable<IntegrationRecipe> |
getAllRecipes()
Gets all of the simple recipes that are registered.
|
IntegrationRecipe |
getRecipe(net.minecraft.util.ResourceLocation name)
Returns recipe by it's name
|
IntegrationRecipe |
getRecipeFor(net.minecraft.item.ItemStack target,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> toIntegrate)
Gets an integration recipe for the given ingredients.
|
public static final IntegrationRecipeRegistry INSTANCE
public final java.util.Map<net.minecraft.util.ResourceLocation,IntegrationRecipe> recipes
public IntegrationRecipe getRecipeFor(@Nonnull net.minecraft.item.ItemStack target, @Nonnull net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> toIntegrate)
IIntegrationRecipeProvider
getRecipeFor
in interface IIntegrationRecipeProvider
target
- The center itemstack.toIntegrate
- A list of stacks to try to integrate to thepublic void addRecipe(IntegrationRecipe recipe)
addRecipe
in interface IIntegrationRecipeRegistry
public java.lang.Iterable<IntegrationRecipe> getAllRecipes()
IIntegrationRecipeRegistry
Iterator.remove()
method to remove recipes from this registry.getAllRecipes
in interface IIntegrationRecipeRegistry
public IntegrationRecipe getRecipe(@Nonnull net.minecraft.util.ResourceLocation name)
IIntegrationRecipeProvider
getRecipe
in interface IIntegrationRecipeProvider