public interface IInscriberRegistry
Modifier and Type | Method and Description |
---|---|
void |
addRecipe(IInscriberRecipe recipe)
add a new recipe the easy way, duplicates will not be added.
|
IInscriberRecipeBuilder |
builder()
Extensible way to create an inscriber recipe.
|
java.util.Set<net.minecraft.item.ItemStack> |
getInputs()
Get all registered items which are valid inputs.
|
java.util.Set<net.minecraft.item.ItemStack> |
getOptionals()
Optional items which are used in the top or bottom slot.
|
java.util.Collection<IInscriberRecipe> |
getRecipes()
An immutable copy of currently registered recipes.
|
void |
removeRecipe(IInscriberRecipe toBeRemovedRecipe)
Removes all equal recipes from the registry.
|
@Nonnull java.util.Collection<IInscriberRecipe> getRecipes()
Use the provided methods to actually modify the inscriber recipes.
addRecipe(IInscriberRecipe)
,
removeRecipe(IInscriberRecipe)
@Nonnull java.util.Set<net.minecraft.item.ItemStack> getOptionals()
@Nonnull java.util.Set<net.minecraft.item.ItemStack> getInputs()
@Nonnull IInscriberRecipeBuilder builder()
void addRecipe(IInscriberRecipe recipe)
recipe
- new recipejava.lang.IllegalArgumentException
- if null is addedvoid removeRecipe(IInscriberRecipe toBeRemovedRecipe)
toBeRemovedRecipe
- to be removed recipe, can be null, makes just no sense.