public interface IGrinderRegistry
| Modifier and Type | Method and Description |
|---|---|
void |
addDustRatio(java.lang.String oredictName,
int ratio)
Allows do add a custom ratio from an ore to dust when being grinded.
|
boolean |
addRecipe(IGrinderRecipe recipe)
Add a new recipe to the registry.
|
IGrinderRecipeBuilder |
builder()
Extensible way to create a grinder recipe.
|
IGrinderRecipe |
getRecipeForInput(net.minecraft.item.ItemStack input)
Searches for a recipe for a given input, and returns it.
|
java.util.Collection<IGrinderRecipe> |
getRecipes()
An immutable list of the currently registered recipes.
|
boolean |
removeDustRatio(java.lang.String oredictName)
Remove a custom ratio for a specific ore name.
|
boolean |
removeRecipe(IGrinderRecipe recipe)
Remove the specific from the recipe list.
|
@Nonnull IGrinderRecipeBuilder builder()
@Nonnull java.util.Collection<IGrinderRecipe> getRecipes()
boolean addRecipe(IGrinderRecipe recipe)
boolean removeRecipe(@Nonnull
IGrinderRecipe recipe)
recipe - The recipe to be removed.@Nullable IGrinderRecipe getRecipeForInput(@Nonnull net.minecraft.item.ItemStack input)
input - The ItemStack to be grinded.void addDustRatio(@Nonnull
java.lang.String oredictName,
int ratio)
oredictName - The name of the ore;ratio - The amount, must be > 0;boolean removeDustRatio(@Nonnull
java.lang.String oredictName)
oredictName - The name of the ore;