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)
IAssemblyRecipeProvider
getRecipesFor
in interface IAssemblyRecipeProvider
public void addRecipe(@Nonnull AssemblyRecipe recipe)
addRecipe
in interface IAssemblyRecipeRegistry
public void addRecipeProvider(@Nonnull IAssemblyRecipeProvider provider)
addRecipeProvider
in interface IAssemblyRecipeRegistry
public java.lang.Iterable<AssemblyRecipe> getAllRecipes()
IAssemblyRecipeRegistry
Iterator.remove()
method to remove recipes from this registry.getAllRecipes
in interface IAssemblyRecipeRegistry
public java.lang.Iterable<IAssemblyRecipeProvider> getAllRecipeProviders()
IAssemblyRecipeRegistry
Iterator.remove()
method to remove providers from this registry.getAllRecipeProviders
in interface IAssemblyRecipeRegistry
public java.util.Optional<AssemblyRecipe> getRecipe(@Nonnull net.minecraft.util.ResourceLocation name, @Nullable net.minecraft.nbt.NBTTagCompound recipeTag)
IAssemblyRecipeProvider
getRecipe
in interface IAssemblyRecipeProvider
recipeTag
- Additional tag attached to network-transmitted recipe definition