aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/RecipeHelper.java
blob: 0e1cdcf6e12485253e913bec72fd86ebbfcac658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package me.shedaniel.rei.api;

import me.shedaniel.rei.RoughlyEnoughItemsCore;
import net.minecraft.item.ItemStack;
import net.minecraft.recipe.RecipeManager;
import net.minecraft.util.Identifier;

import java.util.List;
import java.util.Map;
import java.util.Optional;

public interface RecipeHelper {
    
    public static RecipeHelper getInstance() {
        return RoughlyEnoughItemsCore.getRecipeHelper();
    }
    
    public int getRecipeCount();
    
    public List<ItemStack> findCraftableByItems(List<ItemStack> inventoryItems);
    
    public void registerCategory(IRecipeCategory category);
    
    public void registerDisplay(Identifier categoryIdentifier, IRecipeDisplay display);
    
    public Map<IRecipeCategory, List<IRecipeDisplay>> getRecipesFor(ItemStack stack);
    
    public RecipeManager getRecipeManager();
    
    public List<IRecipeCategory> getAllCategories();
    
    public Map<IRecipeCategory, List<IRecipeDisplay>> getUsagesFor(ItemStack stack);
    
    public Optional<SpeedCraftAreaSupplier> getSpeedCraftButtonArea(IRecipeCategory category);
    
    public void registerSpeedCraftButtonArea(Identifier category, SpeedCraftAreaSupplier rectangle);
    
    public List<SpeedCraftFunctional> getSpeedCraftFunctional(IRecipeCategory category);
    
    public void registerSpeedCraftFunctional(Identifier category, SpeedCraftFunctional functional);
    
    Map<IRecipeCategory, List<IRecipeDisplay>> getAllRecipes();
    
}