public enum IntegrationRecipeRegistry extends java.lang.Enum<IntegrationRecipeRegistry> implements IIntegrationRecipeRegistry
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecipe(IntegrationRecipe recipe) |
void |
addRecipeProvider(IIntegrationRecipeProvider provider) |
java.lang.Iterable<IIntegrationRecipeProvider> |
getAllRecipeProviders()
Gets all of the complex recipe providers that are registered.
|
java.lang.Iterable<IntegrationRecipe> |
getAllRecipes()
Gets all of the simple recipes that are registered.
|
java.util.Optional<IntegrationRecipe> |
getRecipe(net.minecraft.util.ResourceLocation name,
net.minecraft.nbt.NBTTagCompound recipeTag)
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.
|
static boolean |
matches(IntegrationRecipe recipe,
net.minecraft.item.ItemStack target,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> toIntegrate) |
static IntegrationRecipeRegistry |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IntegrationRecipeRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IntegrationRecipeRegistry INSTANCE
public static IntegrationRecipeRegistry[] values()
for (IntegrationRecipeRegistry c : IntegrationRecipeRegistry.values()) System.out.println(c);
public static IntegrationRecipeRegistry valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic 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 static boolean matches(IntegrationRecipe recipe, @Nonnull net.minecraft.item.ItemStack target, net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> toIntegrate)
public void addRecipe(IntegrationRecipe recipe)
addRecipe in interface IIntegrationRecipeRegistrypublic void addRecipeProvider(IIntegrationRecipeProvider provider)
addRecipeProvider in interface IIntegrationRecipeRegistrypublic java.lang.Iterable<IntegrationRecipe> getAllRecipes()
IIntegrationRecipeRegistryIterator.remove() method to remove recipes from this registry.getAllRecipes in interface IIntegrationRecipeRegistrypublic java.lang.Iterable<IIntegrationRecipeProvider> getAllRecipeProviders()
IIntegrationRecipeRegistryIterator.remove() method to remove providers from this registry.getAllRecipeProviders in interface IIntegrationRecipeRegistrypublic java.util.Optional<IntegrationRecipe> getRecipe(@Nonnull net.minecraft.util.ResourceLocation name, @Nullable net.minecraft.nbt.NBTTagCompound recipeTag)
IIntegrationRecipeProvidergetRecipe in interface IIntegrationRecipeProviderrecipeTag - Additional tag attached to network-transmitted recipe definition