mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-21 12:32:29 +00:00
62 lines
1.4 KiB
Java
62 lines
1.4 KiB
Java
package minetweaker.api.recipes;
|
|
|
|
import minetweaker.api.item.IItemStack;
|
|
import stanhebben.zenscript.annotations.ZenClass;
|
|
import stanhebben.zenscript.annotations.ZenGetter;
|
|
import stanhebben.zenscript.annotations.ZenMethod;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* The BrewingManager adds and removes brewing recipes. The IBrewingManager
|
|
* instance is available through the recipes global variable.
|
|
*
|
|
* @author Jared
|
|
*/
|
|
@ZenClass("minetweaker.recipes.IBrewingManager")
|
|
public interface IBrewingManager {
|
|
|
|
/**
|
|
* Returns all crafting recipes.
|
|
*
|
|
* @return all crafting recipes
|
|
*/
|
|
@ZenGetter("all")
|
|
public List<IBrewingRecipe> getAll();
|
|
|
|
/**
|
|
* Removes a brewing recipe from the specified item.
|
|
*
|
|
* @param output recipe output pattern
|
|
* @return number of removed recipes
|
|
*/
|
|
@ZenMethod
|
|
public void remove(IItemStack output);
|
|
|
|
/**
|
|
* Adds a recipe.
|
|
*
|
|
* @param output recipe output
|
|
* @param ingredient recipe ingredient
|
|
* @param input recipe input
|
|
*/
|
|
@ZenMethod
|
|
public void add(
|
|
IItemStack output,
|
|
IItemStack ingredient,
|
|
IItemStack input);
|
|
|
|
/**
|
|
* Removes recipes.
|
|
*
|
|
* @param output recipe output
|
|
* @param ingredients recipe ingredient
|
|
* @return number of removed recipes
|
|
*/
|
|
@ZenMethod
|
|
public int remove(
|
|
IItemStack output,
|
|
IItemStack ingredients);
|
|
|
|
}
|