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)
IIntegrationRecipeProvidergetRecipeFor in interface IIntegrationRecipeProvidertarget - The center itemstack.toIntegrate - A list of stacks to try to integrate to thepublic void addRecipe(IntegrationRecipe recipe)
addRecipe in interface IIntegrationRecipeRegistrypublic java.lang.Iterable<IntegrationRecipe> getAllRecipes()
IIntegrationRecipeRegistryIterator.remove() method to remove recipes from this registry.getAllRecipes in interface IIntegrationRecipeRegistrypublic IntegrationRecipe getRecipe(@Nonnull net.minecraft.util.ResourceLocation name)
IIntegrationRecipeProvidergetRecipe in interface IIntegrationRecipeProvider