public class CentrifugeRecipeManager extends java.lang.Object implements ICentrifugeManager
| Constructor and Description |
|---|
CentrifugeRecipeManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRecipe(ICentrifugeRecipe recipe)
Add a new recipe to the crafting provider.
|
void |
addRecipe(int timePerItem,
net.minecraft.item.ItemStack resource,
java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> products)
Add a recipe to the centrifuge
|
static ICentrifugeRecipe |
findMatchingRecipe(net.minecraft.item.ItemStack itemStack) |
java.util.Set<ICentrifugeRecipe> |
recipes() |
boolean |
removeRecipe(ICentrifugeRecipe recipe)
Remove a specific recipe from the crafting provider.
|
public void addRecipe(int timePerItem,
net.minecraft.item.ItemStack resource,
java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> products)
ICentrifugeManageraddRecipe in interface ICentrifugeManagertimePerItem - Time to centrifugate one item of the given type. Default is 20.resource - ItemStack containing information on item id and damage. Stack size will be ignored.products - Specifies the possible products and the chances of them resulting from centrifuging.
Chances are from (0.0 to 1.0]@Nullable public static ICentrifugeRecipe findMatchingRecipe(net.minecraft.item.ItemStack itemStack)
public boolean addRecipe(ICentrifugeRecipe recipe)
ICraftingProvideraddRecipe in interface ICraftingProvider<ICentrifugeRecipe>public boolean removeRecipe(ICentrifugeRecipe recipe)
ICraftingProviderremoveRecipe in interface ICraftingProvider<ICentrifugeRecipe>public java.util.Set<ICentrifugeRecipe> recipes()
recipes in interface ICraftingProvider<ICentrifugeRecipe>