public class MoistenerRecipeManager extends java.lang.Object implements IMoistenerManager
| Constructor and Description |
|---|
MoistenerRecipeManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRecipe(IMoistenerRecipe recipe)
Add a new recipe to the crafting provider.
|
void |
addRecipe(net.minecraft.item.ItemStack resource,
net.minecraft.item.ItemStack product,
int timePerItem)
Add a recipe to the moistener
|
static IMoistenerRecipe |
findMatchingRecipe(net.minecraft.item.ItemStack item) |
static boolean |
isResource(net.minecraft.item.ItemStack resource) |
java.util.Set<IMoistenerRecipe> |
recipes() |
boolean |
removeRecipe(IMoistenerRecipe recipe)
Remove a specific recipe from the crafting provider.
|
public void addRecipe(net.minecraft.item.ItemStack resource,
net.minecraft.item.ItemStack product,
int timePerItem)
IMoistenerManageraddRecipe in interface IMoistenerManagerresource - Item required in resource stack. Will be reduced by one per produced item.product - Item to produce per resource processed.timePerItem - Moistener runs at 1 - 4 time ticks per ingame tick depending on light level. For mycelium this value is currently 5000.public static boolean isResource(net.minecraft.item.ItemStack resource)
@Nullable public static IMoistenerRecipe findMatchingRecipe(net.minecraft.item.ItemStack item)
public boolean addRecipe(IMoistenerRecipe recipe)
ICraftingProvideraddRecipe in interface ICraftingProvider<IMoistenerRecipe>public boolean removeRecipe(IMoistenerRecipe recipe)
ICraftingProviderremoveRecipe in interface ICraftingProvider<IMoistenerRecipe>public java.util.Set<IMoistenerRecipe> recipes()
recipes in interface ICraftingProvider<IMoistenerRecipe>