public enum AssemblyRecipeRegistry extends java.lang.Enum<AssemblyRecipeRegistry> implements IAssemblyRecipeRegistry
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecipe(AssemblyRecipe recipe) |
void |
addRecipeProvider(IAssemblyRecipeProvider provider) |
java.lang.Iterable<IAssemblyRecipeProvider> |
getAllRecipeProviders()
Gets all of the complex recipe providers that are registered.
|
java.lang.Iterable<AssemblyRecipe> |
getAllRecipes()
Gets all of the simple recipes that are registered.
|
java.util.Optional<AssemblyRecipe> |
getRecipe(net.minecraft.util.ResourceLocation name,
net.minecraft.nbt.NBTTagCompound recipeTag)
Returns recipe by it's name
|
java.util.List<AssemblyRecipe> |
getRecipesFor(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> possibleIn)
Should return a list of all the valid recipes given the input items.
|
static AssemblyRecipeRegistry |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AssemblyRecipeRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AssemblyRecipeRegistry INSTANCE
public static AssemblyRecipeRegistry[] values()
for (AssemblyRecipeRegistry c : AssemblyRecipeRegistry.values()) System.out.println(c);
public static AssemblyRecipeRegistry 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 null@Nonnull public java.util.List<AssemblyRecipe> getRecipesFor(@Nonnull net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> possibleIn)
IAssemblyRecipeProvidergetRecipesFor in interface IAssemblyRecipeProviderpublic void addRecipe(@Nonnull
AssemblyRecipe recipe)
addRecipe in interface IAssemblyRecipeRegistrypublic void addRecipeProvider(@Nonnull
IAssemblyRecipeProvider provider)
addRecipeProvider in interface IAssemblyRecipeRegistrypublic java.lang.Iterable<AssemblyRecipe> getAllRecipes()
IAssemblyRecipeRegistryIterator.remove() method to remove recipes from this registry.getAllRecipes in interface IAssemblyRecipeRegistrypublic java.lang.Iterable<IAssemblyRecipeProvider> getAllRecipeProviders()
IAssemblyRecipeRegistryIterator.remove() method to remove providers from this registry.getAllRecipeProviders in interface IAssemblyRecipeRegistrypublic java.util.Optional<AssemblyRecipe> getRecipe(@Nonnull net.minecraft.util.ResourceLocation name, @Nullable net.minecraft.nbt.NBTTagCompound recipeTag)
IAssemblyRecipeProvidergetRecipe in interface IAssemblyRecipeProviderrecipeTag - Additional tag attached to network-transmitted recipe definition